Fixed two bugs concerning lobby player notifications: Game state is now set correctly after a game was finished and reopened, for players which are joining afterwards.
Computer players are now properly removed from finished games.
This commit is contained in:
1 parent
5218e038d4
commit
9663a225d5
3 files changed
+45
-27
No files matched your search
@@ -1184,6 +1184,8 @@ ServerGameStateNextGameDelay::Process(ServerGameThread &server)
|
||||
server.SendToAllPlayers(endGame, SessionData::Game);
|
||||
|
||||
// Wait for the start of a new game.
|
||||
server.ResetComputerPlayerList();
|
||||
server.ResetGame();
|
||||
server.SetState(ServerGameStateInit::Instance());
|
||||
server.GetLobbyThread().NotifyReopeningGame(server.GetId());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user