Adding backward compatibility for 0.6 clients. They cannot join games with > 7 players.
This commit is contained in:
1 parent
dae16675a4
commit
992dd4b618
5 files changed
+29
-2
No files matched your search
@@ -308,6 +308,11 @@ ServerGameStateInit::HandleNewSession(ServerGameThread &server, SessionWrapper s
|
||||
{
|
||||
server.MoveSessionToLobby(session, NTF_NET_REMOVED_GAME_FULL);
|
||||
}
|
||||
// Check whether the client supports the current game.
|
||||
else if (curNumPlayers >= session.sessionData->GetMaxNumPlayers())
|
||||
{
|
||||
server.MoveSessionToLobby(session, NTF_NET_NEW_RELEASE_AVAILABLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (session.playerData->GetUniqueId() == server.GetAdminPlayerId())
|
||||
|
||||
Reference in new issue
Block a user