(svn r24403) -Fix: Draw wires under low bridges if the bridge is transparent, not if the wire is transparent.
This commit is contained in:
@@ -437,7 +437,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
|
|||||||
if (IsTunnelTile(ti->tile)) return;
|
if (IsTunnelTile(ti->tile)) return;
|
||||||
|
|
||||||
/* Don't draw a wire under a low bridge */
|
/* 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));
|
int height = GetBridgeHeight(GetNorthernBridgeEnd(ti->tile));
|
||||||
|
|
||||||
if (height <= GetTileMaxZ(ti->tile) + 1) return;
|
if (height <= GetTileMaxZ(ti->tile) + 1) return;
|
||||||
|
Reference in New Issue
Block a user