Changeset - r22601:8611608b1e25
[Not reviewed]
master
0 1 0
peter1138 - 7 years ago 2017-03-20 17:57:24
peter1138@openttd.org
(svn r27812) -Fix: Road tunnel/bridge heads have no trackbits wrt catenary drawing

Road tunnels and bridges do not have any rail, so do not treat them
as if they had when drawing a catenary. (cirdan)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/elrail.cpp
Show inline comments
 
@@ -99,6 +99,7 @@ static TrackBits GetRailTrackBitsUnivers
 
			break;
 

	
 
		case MP_TUNNELBRIDGE:
 
			if (GetTunnelBridgeTransportType(t) != TRANSPORT_RAIL) return TRACK_BIT_NONE;
 
			if (!HasRailCatenary(GetRailType(t))) return TRACK_BIT_NONE;
 
			if (override != NULL && (IsTunnel(t) || GetTunnelBridgeLength(t, GetOtherBridgeEnd(t)) > 0)) {
 
				*override = 1 << GetTunnelBridgeDirection(t);
0 comments (0 inline, 0 general)