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/elrail.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/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 3a2ca3d94..9743507c5 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -503,14 +503,14 @@ void DrawCatenaryOnBridge(const TileInfo *ti) height = GetBridgeHeight(end); - SpriteID wire_base = GetWireBase(start); + SpriteID wire_base = GetWireBase(end); AddSortableSpriteToDraw(wire_base + sss->image_offset, PAL_NONE, ti->x + sss->x_offset, ti->y + sss->y_offset, sss->x_size, sss->y_size, sss->z_size, height + sss->z_offset, IsTransparencySet(TO_CATENARY) ); - SpriteID pylon_base = GetPylonBase(start); + SpriteID pylon_base = GetPylonBase(end); /* Finished with wires, draw pylons * every other tile needs a pylon on the northern end */ |