|
|
@@ -701,6 +701,12 @@ function N2C_Get_State(msg)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
+ local sourceServerId = msg.sourceServerId
|
|
|
+ local num = calcSvrUnionJoinNum(sourceServerId)
|
|
|
+ if num >= AnotherWorldBattleDefine.AB_SRV_UNION_MAX_NUM then
|
|
|
+ msgData.joinState = 2
|
|
|
+ end
|
|
|
+
|
|
|
local joinUnionArr = AnotherWorldBattleDB.GetJoinUnionArr()
|
|
|
for _, unionData in ipairs(joinUnionArr or {}) do
|
|
|
if unionData.unionId == msg.myUnionId then
|
|
|
@@ -708,12 +714,6 @@ function N2C_Get_State(msg)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
- local sourceServerId = msg.sourceServerId
|
|
|
- local num = calcSvrUnionJoinNum(sourceServerId)
|
|
|
- if num >= AnotherWorldBattleDefine.AB_SRV_UNION_MAX_NUM then
|
|
|
- msgData.joinState = 2
|
|
|
- end
|
|
|
-
|
|
|
local fd = MiddleManager.getFDBySvrIndex(sourceServerId)
|
|
|
InnerMsg.sendMsg(fd, msgData)
|
|
|
end
|