diff options
author | rubidium <rubidium@openttd.org> | 2010-07-19 17:00:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-19 17:00:54 +0000 |
commit | 5a836cdec79cea79ff3ef69c08f13a0546c6dacd (patch) | |
tree | b99ecea2bc6ed091855a354725adcf308c7c5ada /src/tree_cmd.cpp | |
parent | 34764feac226f4a962cfa7957db79feb617c900c (diff) | |
download | openttd-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/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index 78c771b0b..baed9ab56 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -457,7 +457,7 @@ static void DrawTile_Trees(TileInfo *ti) case TREE_GROUND_SHORE: DrawShoreTile(ti->tileh); break; case TREE_GROUND_GRASS: DrawClearLandTile(ti, GetTreeDensity(ti->tile)); break; case TREE_GROUND_ROUGH: DrawHillyLandTile(ti); break; - default: DrawGroundSprite(_clear_land_sprites_snow_desert[GetTreeDensity(ti->tile)] + _tileh_to_sprite[ti->tileh], PAL_NONE); break; + default: DrawGroundSprite(_clear_land_sprites_snow_desert[GetTreeDensity(ti->tile)] + SlopeToSpriteOffset(ti->tileh), PAL_NONE); break; } DrawClearLandFence(ti); |