From 6898a76c5f80ef1aa65106f98d5e36002bc0ddda Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 Jul 2008 20:13:01 +0000 Subject: (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. --- src/player_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/player_gui.cpp') diff --git a/src/player_gui.cpp b/src/player_gui.cpp index c0abfad8c..472865c29 100644 --- a/src/player_gui.cpp +++ b/src/player_gui.cpp @@ -252,7 +252,7 @@ static const WindowDesc _player_finances_small_desc = { */ static void DoShowPlayerFinances(PlayerID player, bool show_small, bool show_stickied, int top, int left) { - if (!IsValidPlayer(player)) return; + if (!IsValidPlayerID(player)) return; if (BringWindowToFrontById(WC_FINANCES, player)) return; new PlayerFinancesWindow(show_small ? &_player_finances_small_desc : &_player_finances_desc, player, show_small, show_stickied, top, left); @@ -1030,7 +1030,7 @@ static const WindowDesc _select_player_face_adv_desc = { */ static void DoSelectPlayerFace(Window *parent, bool adv, int top, int left) { - if (!IsValidPlayer((PlayerID)parent->window_number)) return; + if (!IsValidPlayerID((PlayerID)parent->window_number)) return; if (BringWindowToFrontById(WC_PLAYER_FACE, parent->window_number)) return; new SelectPlayerFaceWindow(adv ? &_select_player_face_adv_desc : &_select_player_face_desc, parent, adv, top, left); // simple or advanced window @@ -1349,7 +1349,7 @@ static const WindowDesc _player_company_desc = { void ShowPlayerCompany(PlayerID player) { - if (!IsValidPlayer(player)) return; + if (!IsValidPlayerID(player)) return; AllocateWindowDescFront(&_player_company_desc, player); } @@ -1495,7 +1495,7 @@ struct EndGameWindow : EndGameHighScoreBaseWindow { this->SetupHighScoreEndWindow(&x, &y); - if (!IsValidPlayer(_local_player)) return; + if (!IsValidPlayerID(_local_player)) return; p = GetPlayer(_local_player); /* We need to get performance from last year because the image is shown -- cgit v1.2.3-54-g00ecf