1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

(svn r6691) -Fix r3907: check the transport type under the bridge when you want to get the road bits under a bridge (thanx hylje)

This commit is contained in:
glx
2006-10-08 19:31:01 +00:00
parent 8411da7241
commit 52a19f25f5

View File

@@ -30,7 +30,7 @@ RoadBits GetAnyRoadBits(TileIndex tile)
if (IsBridge(tile)) {
if (IsBridgeMiddle(tile)) {
if (!IsTransportUnderBridge(tile) ||
GetBridgeTransportType(tile) != TRANSPORT_ROAD) {
GetTransportTypeUnderBridge(tile) != TRANSPORT_ROAD) {
return 0;
}
return GetRoadBitsUnderBridge(tile);