Current compatibility notification is not working. The server will now send a "game full" notification if a 0.6 player tries to enter a game with > 7 max players.
This commit is contained in:
@@ -311,7 +311,7 @@ ServerGameStateInit::HandleNewSession(ServerGameThread &server, SessionWrapper s
|
|||||||
// Check whether the client supports the current game.
|
// Check whether the client supports the current game.
|
||||||
else if ((size_t)server.GetGameData().maxNumberOfPlayers > session.sessionData->GetMaxNumPlayers())
|
else if ((size_t)server.GetGameData().maxNumberOfPlayers > session.sessionData->GetMaxNumPlayers())
|
||||||
{
|
{
|
||||||
server.MoveSessionToLobby(session, NTF_NET_NEW_RELEASE_AVAILABLE);
|
server.MoveSessionToLobby(session, NTF_NET_REMOVED_GAME_FULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user