(svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name

This commit is contained in:
rubidium
2010-07-19 17:00:54 +00:00
parent 2ab8035604
commit 035d0ef16b
8 changed files with 25 additions and 16 deletions

View File

@@ -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 */