ai/default/default.c
changeset 5385 3868f2e6db9b
parent 5247 1f982de55b88
child 5387 843c3d90823e
--- a/ai/default/default.c	Wed Dec 27 12:22:25 2006 +0000
+++ b/ai/default/default.c	Wed Dec 27 12:38:02 2006 +0000
@@ -2183,9 +2183,7 @@
 				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 @@
 	} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
 		if (!IsTileOwner(tile, _current_player) ||
 				!IsBridge(tile) ||
-				!IsBridgeRamp(tile) ||
 				GetBridgeTransportType(tile) != TRANSPORT_RAIL) {
 			return;
 		}