diff options
author | frosch <frosch@openttd.org> | 2010-08-09 07:30:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-08-09 07:30:50 +0000 |
commit | b6cf38a9123bc560fe8b4dfcbfe492f5577c64ce (patch) | |
tree | bed7186cf77bf2e56ea04cdfc7147ca9a12cd877 /src/tunnelbridge_cmd.cpp | |
parent | c2b1c624dd0d7909c69ddfba1eb2cf611b22cd25 (diff) | |
download | openttd-b6cf38a9123bc560fe8b4dfcbfe492f5577c64ce.tar.xz |
(svn r20422) -Change [FS#3947]: Resolve tracksprites on bridges always using the southern bridgehead as tile.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index adb399af8..0c08fd11d 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1253,7 +1253,7 @@ void DrawBridgeMiddle(const TileInfo *ti) } else if (transport_type == TRANSPORT_RAIL) { const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(rampsouth)); if (rti->UsesOverlay()) { - SpriteID surface = GetCustomRailSprite(rti, ti->tile, RTSG_BRIDGE); + SpriteID surface = GetCustomRailSprite(rti, rampsouth, RTSG_BRIDGE); if (surface != 0) { AddSortableSpriteToDraw(surface + axis, PAL_NONE, x, y, 16, 16, 0, bridge_z, IsTransparencySet(TO_BRIDGES)); } |