mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-17 11:39:11 +00:00
(svn r7110) -Fix: Do not let ships enter partial water tiles under bridges; they will travel up land...
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user