Show and update admin player of a game even when in lobby and not in the game.
This commit is contained in:
@@ -247,9 +247,9 @@ ServerGameStateInit::HandleNewSession(ServerGameThread &server, SessionWrapper s
|
||||
}
|
||||
else
|
||||
{
|
||||
if (curNumPlayers == 0)
|
||||
if (session.playerData->GetUniqueId() == server.GetAdminPlayerId())
|
||||
{
|
||||
// First player is admin.
|
||||
// This is the admin player.
|
||||
session.playerData->SetRights(PLAYER_RIGHTS_ADMIN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user