diff options
author | tron <tron@openttd.org> | 2006-06-07 19:35:21 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-07 19:35:21 +0000 |
commit | 7fd88e57981e15cd8f2c11a2134e289dbe1b856e (patch) | |
tree | 5a6fb4aa93546ad194301d231de10ba5370ccc6f /ai | |
parent | 8992f9cb2bf20a1615f99735d13ade6b2535cbcf (diff) | |
download | openttd-7fd88e57981e15cd8f2c11a2134e289dbe1b856e.tar.xz |
(svn r5155) - Remove the bridge branch merge (revision r5070)
Diffstat (limited to 'ai')
-rw-r--r-- | ai/default/default.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index c71b0b1cd..dd682581c 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -2165,7 +2165,9 @@ static bool AiRemoveTileAndGoForward(Player *p) return false; p->ai.cur_tile_a = TILE_MASK(_build_tunnel_endtile - TileOffsByDir(p->ai.cur_dir_a)); return true; - } else { + } + + if (IsBridgeRamp(tile)) { // Check if the bridge points in the right direction. // This is not really needed the first place AiRemoveTileAndGoForward is called. if (DiagDirToAxis(GetBridgeRampDirection(tile)) != (p->ai.cur_dir_a & 1U)) return false; @@ -3697,6 +3699,7 @@ pos_3: } else if (IsTileType(tile, MP_TUNNELBRIDGE)) { if (!IsTileOwner(tile, _current_player) || !IsBridge(tile) || + !IsBridgeRamp(tile) || GetBridgeTransportType(tile) != TRANSPORT_RAIL) { return; } |