diff options
author | frosch <frosch@openttd.org> | 2012-07-15 16:18:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-07-15 16:18:55 +0000 |
commit | 6821f5cd22bb312ff8b51c08ba67d5fc615c80fc (patch) | |
tree | 54501ad94a4b132aa2b4971cbf75be72e92e0c5c /src/elrail.cpp | |
parent | c8cb096533fbb943e455c5e4c2f13ffa2a007c8b (diff) | |
download | openttd-6821f5cd22bb312ff8b51c08ba67d5fc615c80fc.tar.xz |
(svn r24403) -Fix: Draw wires under low bridges if the bridge is transparent, not if the wire is transparent.
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |