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 | d06529ef4d84ce90c90ed560a6b2f3525880c40e (patch) | |
tree | ca5029fca4c5aee49145e4bd3e3f0f81df8ccabc /src/command.cpp | |
parent | c2d2f817de7ec5f4afd76af2de765ac411cdf3c2 (diff) | |
download | openttd-d06529ef4d84ce90c90ed560a6b2f3525880c40e.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/command.cpp')
-rw-r--r-- | src/command.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command.cpp b/src/command.cpp index fffb39f69..e0081b73b 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -448,7 +448,7 @@ error: if (--_docommand_recursive == 0 && !(flags & DC_BANKRUPT)) { SubtractMoneyFromPlayer(res); /* XXX - Old AI hack which doesn't use DoCommandDP; update last build coord of player */ - if (tile != 0 && IsValidPlayer(_current_player)) { + if (tile != 0 && IsValidPlayerID(_current_player)) { GetPlayer(_current_player)->last_build_coordinate = tile; } } @@ -467,7 +467,7 @@ error: Money GetAvailableMoneyForCommand() { PlayerID pid = _current_player; - if (!IsValidPlayer(pid)) return INT64_MAX; + if (!IsValidPlayerID(pid)) return INT64_MAX; return GetPlayer(pid)->player_money; } @@ -608,7 +608,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, DebugDumpCommands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)_current_player, tile, p1, p2, cmd, _cmd_text); /* update last build coordinate of player. */ - if (tile != 0 && IsValidPlayer(_current_player)) { + if (tile != 0 && IsValidPlayerID(_current_player)) { GetPlayer(_current_player)->last_build_coordinate = tile; } |