Each network session now has a weak ptr to its game, to prevent looking up the game id all the time.
This commit is contained in:
@@ -783,7 +783,7 @@ ServerGame::MoveSessionToLobby(boost::shared_ptr<SessionData> session, int reaso
|
||||
GracefulRemoveSession(session, reason);
|
||||
// Reset ready flag - just in case it is set, player may leave at any time.
|
||||
session->ResetReadyFlag();
|
||||
GetLobbyThread().ReAddSession(session, reason);
|
||||
GetLobbyThread().ReAddSession(session, reason, GetId());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user