summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-10-08 19:31:01 +0000
committerglx <glx@openttd.org>2006-10-08 19:31:01 +0000
commit52a19f25f5d20f34dc25280095ca1da93bfa3210 (patch)
treedd3c6e7019d1a2d8dae875af2c2a44c45a490712
parent8411da7241c63b15b4751342bcbede50257ca382 (diff)
downloadopenttd-52a19f25f5d20f34dc25280095ca1da93bfa3210.tar.xz
(svn r6691) -Fix r3907: check the transport type under the bridge when you want to get the road bits under a bridge (thanx hylje)
-rw-r--r--road_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_map.c b/road_map.c
index 5e4fc667a..5c386bad1 100644
--- a/road_map.c
+++ b/road_map.c
@@ -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);