summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-08-09 07:32:04 +0000
committerfrosch <frosch@openttd.org>2010-08-09 07:32:04 +0000
commit7f1425c333327858dcd48db7c2718cd1d9d777c7 (patch)
tree69afdaff7326a8a2a9630b3ba6e62169a95d7d3a /src/elrail.cpp
parentb6cf38a9123bc560fe8b4dfcbfe492f5577c64ce (diff)
downloadopenttd-7f1425c333327858dcd48db7c2718cd1d9d777c7.tar.xz
(svn r20423) -Change [FS#3947]: Make snow on bridges depend on bridgeheight.
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r--src/elrail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index 9743507c5..cbfa487ab 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(end);
+ SpriteID wire_base = GetWireBase(end, TC_ON_BRIDGE);
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(end);
+ SpriteID pylon_base = GetPylonBase(end, TC_ON_BRIDGE);
/* Finished with wires, draw pylons
* every other tile needs a pylon on the northern end */