mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +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:
parent
8411da7241
commit
52a19f25f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user