summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-08 08:41:54 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-08 08:41:54 +0000
commitd830874c12008f61e11865428e14e551ce58fe4f (patch)
tree91e066717dcb9d0ab46eef8a4f017c44bcb54004
parentcfd69f21ff8e119dbc58a3a94683bb57fa1c2132 (diff)
downloadopenttd-d830874c12008f61e11865428e14e551ce58fe4f.tar.xz
(svn r7110) -Fix: Do not let ships enter partial water tiles under bridges; they will travel up land...
-rw-r--r--tunnelbridge_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 2ad5ea80d..17b803628 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1310,7 +1310,7 @@ static uint32 GetTileTrackStatus_TunnelBridge(TileIndex tile, TransportType mode
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;