summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-17 20:13:01 +0000
committerrubidium <rubidium@openttd.org>2008-07-17 20:13:01 +0000
commit6898a76c5f80ef1aa65106f98d5e36002bc0ddda (patch)
treeca5029fca4c5aee49145e4bd3e3f0f81df8ccabc /src/player_gui.cpp
parent83824f4c86b01c93465c0ab71dc84e03f9883e5f (diff)
downloadopenttd-6898a76c5f80ef1aa65106f98d5e36002bc0ddda.tar.xz
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r--src/player_gui.cpp8
1 files changed, 4 insertions, 4 deletions
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<PlayerCompanyWindow>(&_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