summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-03 20:55:00 +0000
committerfrosch <frosch@openttd.org>2010-01-03 20:55:00 +0000
commita9d4147eb28618727c7f8ad013146d04350d3ffe (patch)
tree7e12fcbfcc09072b26c37158cb1a123b2a4571ae /src/tunnelbridge_cmd.cpp
parent8a50a4112c4cf425b3d47c189f80c4e053c047bc (diff)
downloadopenttd-a9d4147eb28618727c7f8ad013146d04350d3ffe.tar.xz
(svn r18702) -Fix [FS#3467]: Enable DrawGroundSpriteAt() to deal with foundations as DrawGroundSprite() does, and use this for drawing one-way-road-signs and clear-land-fences.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-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 42e18201b..0b199bb4e 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1184,7 +1184,7 @@ void DrawBridgeMiddle(const TileInfo *ti)
pal = PALETTE_TO_TRANSPARENT;
}
- DrawGroundSpriteAt(image, pal, x, y, z);
+ DrawGroundSpriteAt(image, pal, x - ti->x, y - ti->y, z - ti->z);
}
} else if (_settings_client.gui.bridge_pillars) {
/* draw pillars below for high bridges */