mirror of https://github.com/OpenTTD/OpenTTD
(svn r24403) -Fix: Draw wires under low bridges if the bridge is transparent, not if the wire is transparent.
parent
c8cb096533
commit
6821f5cd22
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue