Fixing game admin stuff.

This commit is contained in:
lotodore
2010-03-27 12:50:05 +00:00
parent b7186158cc
commit d4b82d7dbc
4 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -566,7 +566,7 @@ ServerGame::GracefulRemoveSession(SessionWrapper session, int reason)
void
ServerGame::RemovePlayerData(boost::shared_ptr<PlayerData> player, int reason)
{
if (player->GetRights() == PLAYER_RIGHTS_ADMIN)
if (player->IsGameAdmin())
{
// Find new admin for the game
PlayerDataList playerList(GetSessionManager().GetPlayerDataList());