Show and update admin player of a game even when in lobby and not in the game.

This commit is contained in:
lotodore
2007-10-12 14:32:25 +00:00
parent 96d1f34f5c
commit 4f00333599
21 changed files with 227 additions and 22 deletions
+2 -2
View File
@@ -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);
}