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/viewport.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/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 5852881f3..b55c4a414 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -851,7 +851,7 @@ static void DrawTileSelectionRect(const TileInfo *ti, PaletteID pal) } sel += opposite_corner; } else { - sel = SPR_SELECT_TILE + _tileh_to_sprite[ti->tileh]; + sel = SPR_SELECT_TILE + SlopeToSpriteOffset(ti->tileh); } DrawSelectionSprite(sel, pal, ti, 7, FOUNDATION_PART_NORMAL); } |