(svn r6691) -Fix r3907: check the transport type under the bridge when you want to get the road bits under a bridge (thanx hylje)
authorglx
Sun, 08 Oct 2006 19:31:01 +0000
changeset 4777 bab9aa91c186
parent 4776 c798a32e8bc7
child 4778 e0b42e7db849
(svn r6691) -Fix r3907: check the transport type under the bridge when you want to get the road bits under a bridge (thanx hylje)
road_map.c
--- a/road_map.c	Sun Oct 08 19:28:55 2006 +0000
+++ b/road_map.c	Sun Oct 08 19:31:01 2006 +0000
@@ -30,7 +30,7 @@
 			if (IsBridge(tile)) {
 				if (IsBridgeMiddle(tile)) {
 					if (!IsTransportUnderBridge(tile) ||
-							GetBridgeTransportType(tile) != TRANSPORT_ROAD) {
+							GetTransportTypeUnderBridge(tile) != TRANSPORT_ROAD) {
 						return 0;
 					}
 					return GetRoadBitsUnderBridge(tile);