summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-09-13 12:19:27 +0000
committertruelight <truelight@openttd.org>2005-09-13 12:19:27 +0000
commit4936e936544d89ea042fa7742de5f0f8eb126245 (patch)
tree1d0b1d986e906226e0a4c2b67110203eefaa8479 /tunnelbridge_cmd.c
parent2264103610a5ddd81e50530e1a6afeb0aa28d37c (diff)
downloadopenttd-4936e936544d89ea042fa7742de5f0f8eb126245.tar.xz
(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of special
abilities you really don't want to know about (free bridges, etc..) I removed this flag some revisions ago, but the Aircraft part depends on it, so I re-enabled it again..
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 1dbe6c9f1..fa451b330 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -265,7 +265,7 @@ int32 CmdBuildBridge(int x, int y, uint32 flags, uint32 p1, uint32 p2)
// Towns are not allowed to use bridges on slopes.
- allow_on_slopes = ((!_is_ai_player || _patches.ainew_active)
+ allow_on_slopes = (!_is_old_ai_player
&& _current_player != OWNER_TOWN && _patches.build_on_slopes);
/* Try and clear the start landscape */
@@ -410,7 +410,7 @@ not_valid_below:;
bridge_len += 2; // begin and end tiles/ramps
- if (_current_player < MAX_PLAYERS && !(_is_ai_player && !_patches.ainew_active))
+ if (_current_player < MAX_PLAYERS && !_is_old_ai_player)
bridge_len = CalcBridgeLenCostFactor(bridge_len);
cost += ((int64)bridge_len * _price.build_bridge * b->price) >> 8;