mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r1584) Fix: Highlighlighting tiles under bridges works again correctly for square selection tools.
This commit is contained in:
parent
0a944dc950
commit
4ce10986b5
@ -375,7 +375,7 @@ void DrawGroundSprite(uint32 image)
|
|||||||
// offset ground sprite because of foundation?
|
// offset ground sprite because of foundation?
|
||||||
AddChildSpriteScreen(image, _cur_vd->offs_x, _cur_vd->offs_y);
|
AddChildSpriteScreen(image, _cur_vd->offs_x, _cur_vd->offs_y);
|
||||||
} else {
|
} else {
|
||||||
_added_tile_sprite = true;
|
_added_tile_sprite = true;
|
||||||
DrawGroundSpriteAt(image, _cur_ti->x, _cur_ti->y, _cur_ti->z);
|
DrawGroundSpriteAt(image, _cur_ti->x, _cur_ti->y, _cur_ti->z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -595,7 +595,11 @@ static int dbg_draw_pushed(const TileInfo *ti)
|
|||||||
|
|
||||||
static void DrawSelectionSprite(uint32 image, const TileInfo *ti)
|
static void DrawSelectionSprite(uint32 image, const TileInfo *ti)
|
||||||
{
|
{
|
||||||
AddSortableSpriteToDraw(image, ti->x, ti->y, 0x10, 0x10, 1, ti->z + 7);
|
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)
|
static bool IsPartOfAutoLine(int px, int py)
|
||||||
|
Loading…
Reference in New Issue
Block a user