1
0
Fork 0

(svn r1584) Fix: Highlighlighting tiles under bridges works again correctly for square selection tools.

release/0.4.5
dominik 2005-01-22 09:17:58 +00:00
parent 0a944dc950
commit 4ce10986b5
1 changed files with 6 additions and 2 deletions

View File

@ -595,8 +595,12 @@ static int dbg_draw_pushed(const TileInfo *ti)
static void DrawSelectionSprite(uint32 image, const TileInfo *ti)
{
if (_added_tile_sprite && !(_thd_ptr->drawstyle & HT_LINE)) { // draw on real ground
DrawGroundSpriteAt(image, ti->x, ti->y, ti->z + 7);
} else { // draw on top of foundation
AddSortableSpriteToDraw(image, ti->x, ti->y, 0x10, 0x10, 1, ti->z + 7);
}
}
static bool IsPartOfAutoLine(int px, int py)
{