ai/default/default.c
changeset 3933 a5f08e17f4a0
parent 3876 c0d426e78b56
child 3948 95f9fa0ac551
--- a/ai/default/default.c	Thu Jun 01 22:20:40 2006 +0000
+++ b/ai/default/default.c	Fri Jun 02 13:05:41 2006 +0000
@@ -2158,9 +2158,7 @@
 				return false;
 			p->ai.cur_tile_a = TILE_MASK(_build_tunnel_endtile - TileOffsByDir(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;
@@ -3692,7 +3690,6 @@
 	} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
 		if (!IsTileOwner(tile, _current_player) ||
 				!IsBridge(tile) ||
-				!IsBridgeRamp(tile) ||
 				GetBridgeTransportType(tile) != TRANSPORT_RAIL) {
 			return;
 		}