From 1eac425e0b73d4c7c0c7dd468a4538e9550b1f9a Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 28 Jan 2012 18:11:18 +0000 Subject: (svn r23864) -Fix: Railtype overlays were drawn 'only transparent' on invisible bridges. --- src/tunnelbridge_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index feace2619..797aa4725 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1398,7 +1398,7 @@ void DrawBridgeMiddle(const TileInfo *ti) } } else if (transport_type == TRANSPORT_RAIL) { const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(rampsouth)); - if (rti->UsesOverlay()) { + if (rti->UsesOverlay() && !IsInvisibilitySet(TO_BRIDGES)) { SpriteID surface = GetCustomRailSprite(rti, rampsouth, RTSG_BRIDGE, TCX_ON_BRIDGE); if (surface != 0) { AddSortableSpriteToDraw(surface + axis, PAL_NONE, x, y, 16, 16, 0, bridge_z, IsTransparencySet(TO_BRIDGES)); -- cgit v1.2.3-70-g09d2