(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 34764feac2
commit 5a836cdec7
8 changed files with 25 additions and 16 deletions

View File

@@ -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);
}