Mercurial > hg > openttd
changeset 19008:336d03360d40 draft
(svn r23864) -Fix: Railtype overlays were drawn 'only transparent' on invisible bridges.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 28 Jan 2012 18:11:18 +0000 |
parents | cfdf8c0baaa6 |
children | c182079bb17f |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1398,7 +1398,7 @@ } } 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));