summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-28 18:11:18 +0000
committerfrosch <frosch@openttd.org>2012-01-28 18:11:18 +0000
commit1eac425e0b73d4c7c0c7dd468a4538e9550b1f9a (patch)
treeff0db95f1577f11bfdf76d422cc1511dbfda6cc0 /src
parent99c1f8af97b654a30eef9ac5845e00be040862cb (diff)
downloadopenttd-1eac425e0b73d4c7c0c7dd468a4538e9550b1f9a.tar.xz
(svn r23864) -Fix: Railtype overlays were drawn 'only transparent' on invisible bridges.
Diffstat (limited to 'src')
-rw-r--r--src/tunnelbridge_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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));