diff options
author | celestar <celestar@openttd.org> | 2006-12-27 12:38:02 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-12-27 12:38:02 +0000 |
commit | 8cd5daa5334e8193d47240b78a39afaed6a0473a (patch) | |
tree | 28100daed109de06e979123edd0601487ecc8261 /ai | |
parent | 98e6c790e09e550a6cc0585b2084d26f8c7e51f5 (diff) | |
download | openttd-8cd5daa5334e8193d47240b78a39afaed6a0473a.tar.xz |
(svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals)
Diffstat (limited to 'ai')
-rw-r--r-- | ai/default/default.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index f21a9174a..0f69322b0 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -2183,9 +2183,7 @@ static bool AiRemoveTileAndGoForward(Player *p) return false; p->ai.cur_tile_a = TILE_MASK(_build_tunnel_endtile - TileOffsByDiagDir(p->ai.cur_dir_a)); return true; - } - - if (IsBridgeRamp(tile)) { + } else { // 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; @@ -3704,7 +3702,6 @@ pos_3: } else if (IsTileType(tile, MP_TUNNELBRIDGE)) { if (!IsTileOwner(tile, _current_player) || !IsBridge(tile) || - !IsBridgeRamp(tile) || GetBridgeTransportType(tile) != TRANSPORT_RAIL) { return; } |