re-structuring

This commit is contained in:
Kai Philipp
2019-09-09 20:24:29 +02:00
parent ad5735b9fd
commit 9285fa1e32
4 changed files with 29 additions and 45 deletions
+1 -4
View File
@@ -1434,12 +1434,9 @@ ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr<SessionData> sessio
&& session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4
&& game->IsClientAddressConnected(session->GetClientAddr())) {
SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED);
}else if (!session->IsPlayerAllowedToJoinLimitRank(session->GetPlayerData()->GetUniqueId())) {
}else if (!session->IsPlayerAllowedToJoinLimitRank()) {
SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED);
}
}
} else {
MoveSessionToGame(game, session, joinGame.autoleave(), false);
}