Adding backward compatibility for 0.6 clients. They cannot join games with > 7 players.

This commit is contained in:
lotodore
2009-04-11 12:32:54 +00:00
parent dae16675a4
commit 992dd4b618
5 changed files with 29 additions and 2 deletions
+5
View File
@@ -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())