tunnelbridge_cmd.c
changeset 5057 f266cc90b396
parent 5009 437645a303b4
child 5116 2a33a74925c5
--- a/tunnelbridge_cmd.c	Wed Nov 08 05:05:35 2006 +0000
+++ b/tunnelbridge_cmd.c	Wed Nov 08 08:41:54 2006 +0000
@@ -1310,7 +1310,7 @@
 				result = AxisToTrackBits(GetBridgeAxis(tile)) * 0x101;
 			}
 			if ((IsTransportUnderBridge(tile) && mode == GetTransportTypeUnderBridge(tile)) ||
-					(IsWaterUnderBridge(tile)     && mode == TRANSPORT_WATER)) {
+					(IsWaterUnderBridge(tile)     && mode == TRANSPORT_WATER && GetTileSlope(tile, NULL) == SLOPE_FLAT)) {
 				result |= AxisToTrackBits(OtherAxis(GetBridgeAxis(tile))) * 0x101;
 			}
 			return result;