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
+4
View File
@@ -568,6 +568,10 @@ ServerLobbyThread::HandleNetPacketInit(SessionWrapper session, const NetPacketIn
SessionError(session, ERR_NET_VERSION_NOT_SUPPORTED);
return;
}
if (initData.versionMajor == 5 && (initData.versionMinor == 0 || initData.versionMinor == 1))
session.sessionData->SetMaxNumPlayers(7);
else
session.sessionData->SetMaxNumPlayers(MAX_NUMBER_OF_PLAYERS);
// Check the server password.
if (!CheckPassword(initData.password))