From 4936e936544d89ea042fa7742de5f0f8eb126245 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 13 Sep 2005 12:19:27 +0000 Subject: (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.. --- station_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'station_cmd.c') diff --git a/station_cmd.c b/station_cmd.c index 6496cffb1..17c8162dd 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -779,7 +779,7 @@ int32 CheckFlatLandBelow(TileIndex tile, uint w, uint h, uint flags, uint invali b) the build_on_slopes switch is disabled */ if (IsSteepTileh(tileh) || - (((!_patches.ainew_active && _is_ai_player) || !_patches.build_on_slopes) + ((_is_old_ai_player || !_patches.build_on_slopes) && tileh != 0)) { _error_message = STR_0007_FLAT_LAND_REQUIRED; @@ -1009,7 +1009,7 @@ int32 CmdBuildRailroadStation(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (st->train_tile != 0) { // check if we want to expanding an already existing station? - if ((!_patches.ainew_active && _is_ai_player) || !_patches.join_stations) + if (_is_old_ai_player || !_patches.join_stations) return_cmd_error(STR_3005_TOO_CLOSE_TO_ANOTHER_RAILROAD); if (!CanExpandRailroadStation(st, finalvalues, direction)) return CMD_ERROR; -- cgit v1.2.3-54-g00ecf