summaryrefslogtreecommitdiff
path: root/src/tunnelbridge_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 17:00:54 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 17:00:54 +0000
commit5a836cdec79cea79ff3ef69c08f13a0546c6dacd (patch)
treeb99ecea2bc6ed091855a354725adcf308c7c5ada /src/tunnelbridge_cmd.cpp
parent34764feac226f4a962cfa7957db79feb617c900c (diff)
downloadopenttd-5a836cdec79cea79ff3ef69c08f13a0546c6dacd.tar.xz
(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name
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 e706b27af..893238e1b 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1060,7 +1060,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti)
if (!ice) {
DrawClearLandTile(ti, 3);
} else {
- DrawGroundSprite(SPR_FLAT_SNOW_DESERT_TILE + _tileh_to_sprite[ti->tileh], PAL_NONE);
+ DrawGroundSprite(SPR_FLAT_SNOW_DESERT_TILE + SlopeToSpriteOffset(ti->tileh), PAL_NONE);
}
/* draw ramp */