summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.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
commitd06529ef4d84ce90c90ed560a6b2f3525880c40e (patch)
treeca5029fca4c5aee49145e4bd3e3f0f81df8ccabc /src/tunnelbridge_cmd.cpp
parentc2d2f817de7ec5f4afd76af2de765ac411cdf3c2 (diff)
downloadopenttd-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/tunnelbridge_cmd.cpp')
-rw-r--r--src/tunnelbridge_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 0f9788aab..476d6e02b 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -452,10 +452,10 @@ not_valid_below:;
* It's unnecessary to execute this command every time for every bridge. So it is done only
* and cost is computed in "bridge_gui.c". For AI, Towns this has to be of course calculated
*/
- if (!(flags & DC_QUERY_COST) || (IsValidPlayer(_current_player) && GetPlayer(_current_player)->is_ai)) {
+ if (!(flags & DC_QUERY_COST) || (IsValidPlayerID(_current_player) && GetPlayer(_current_player)->is_ai)) {
bridge_len += 2; // begin and end tiles/ramps
- if (IsValidPlayer(_current_player) && !_is_old_ai_player)
+ if (IsValidPlayerID(_current_player) && !_is_old_ai_player)
bridge_len = CalcBridgeLenCostFactor(bridge_len);
cost.AddCost((int64)bridge_len * _price.build_bridge * GetBridgeSpec(bridge_type)->price >> 8);