summaryrefslogtreecommitdiff
path: root/road_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
commit2e87864d0b078a68b481340838b4c91e653026fa (patch)
tree1d0b1d986e906226e0a4c2b67110203eefaa8479 /road_cmd.c
parent42813c5426144f9846f200295b6e6ad52bc416ec (diff)
downloadopenttd-2e87864d0b078a68b481340838b4c91e653026fa.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 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index dd6b945f3..3b6eff3c1 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -457,7 +457,7 @@ do_clear:;
cost = CheckRoadSlope(ti.tileh, &pieces, existing);
if (CmdFailed(cost)) return_cmd_error(STR_1800_LAND_SLOPED_IN_WRONG_DIRECTION);
- if (cost && (!_patches.build_on_slopes || (!_patches.ainew_active && _is_ai_player)))
+ if (cost && (!_patches.build_on_slopes || _is_old_ai_player))
return CMD_ERROR;
if (!(ti.type == MP_STREET && (ti.map5 & 0xF0) == 0)) {