From 6821f5cd22bb312ff8b51c08ba67d5fc615c80fc Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 15 Jul 2012 16:18:55 +0000 Subject: (svn r24403) -Fix: Draw wires under low bridges if the bridge is transparent, not if the wire is transparent. --- src/elrail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/elrail.cpp b/src/elrail.cpp index 8aea17aae..5d4a4a6a9 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -437,7 +437,7 @@ static void DrawCatenaryRailway(const TileInfo *ti) if (IsTunnelTile(ti->tile)) return; /* Don't draw a wire under a low bridge */ - if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile) && !IsTransparencySet(TO_CATENARY)) { + if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile) && !IsTransparencySet(TO_BRIDGES)) { int height = GetBridgeHeight(GetNorthernBridgeEnd(ti->tile)); if (height <= GetTileMaxZ(ti->tile) + 1) return; -- cgit v1.2.3-70-g09d2