diff options
author | rubidium <rubidium@openttd.org> | 2008-07-17 20:13:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-17 20:13:01 +0000 |
commit | 6898a76c5f80ef1aa65106f98d5e36002bc0ddda (patch) | |
tree | ca5029fca4c5aee49145e4bd3e3f0f81df8ccabc /src/misc_gui.cpp | |
parent | 83824f4c86b01c93465c0ab71dc84e03f9883e5f (diff) | |
download | openttd-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/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 1c8cbad98..e8ff55fdf 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -103,7 +103,7 @@ public: } LandInfoWindow(TileIndex tile) : Window(&_land_info_desc) { - Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST); + Player *p = GetPlayer(IsValidPlayerID(_local_player) ? _local_player : PLAYER_FIRST); Town *t = ClosestTownFromTile(tile, _settings_game.economy.dist_local_authority); Money old_money = p->player_money; @@ -1364,7 +1364,7 @@ struct SaveLoadWindow : public QueryStringBaseWindow { { /* Check if we are not a spectator who wants to generate a name.. Let's use the name of player #0 for now. */ - const Player *p = GetPlayer(IsValidPlayer(_local_player) ? _local_player : PLAYER_FIRST); + const Player *p = GetPlayer(IsValidPlayerID(_local_player) ? _local_player : PLAYER_FIRST); SetDParam(0, p->index); SetDParam(1, _date); |