mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
Change: Make terraforming point selection sprite visible at >2x zoom out (#11017)
This commit is contained in:
parent
5b0cfc7ea5
commit
3b2934c479
@ -1800,7 +1800,7 @@ static const NWidgetPart _nested_smallmap_bar[] = {
|
||||
NWidget(WWT_PUSHIMGBTN, COLOUR_BROWN, WID_SM_CENTERMAP),
|
||||
SetDataTip(SPR_IMG_SMALLMAP, STR_SMALLMAP_CENTER), SetFill(1, 1),
|
||||
NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_BLANK),
|
||||
SetDataTip(SPR_DOT_SMALL, STR_NULL), SetFill(1, 1),
|
||||
SetDataTip(SPR_EMPTY, STR_NULL), SetFill(1, 1),
|
||||
NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_CONTOUR),
|
||||
SetDataTip(SPR_IMG_SHOW_COUNTOURS, STR_SMALLMAP_TOOLTIP_SHOW_LAND_CONTOURS_ON_MAP), SetFill(1, 1),
|
||||
NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_VEHICLES),
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
static const SpriteID SPR_SELECT_TILE = 752;
|
||||
static const SpriteID SPR_DOT = 774; // corner marker for lower/raise land
|
||||
static const SpriteID SPR_DOT_SMALL = 4078;
|
||||
static const SpriteID SPR_EMPTY = 4078; // empty (transparent blue) sprite
|
||||
static const SpriteID SPR_WHITE_POINT = 4079;
|
||||
|
||||
/* ASCII */
|
||||
|
@ -1126,7 +1126,7 @@ draw_inner:
|
||||
if (IsSteepSlope(ti->tileh)) z -= TILE_HEIGHT;
|
||||
}
|
||||
}
|
||||
DrawSelectionSprite(_cur_dpi->zoom <= ZOOM_LVL_DETAIL ? SPR_DOT : SPR_DOT_SMALL, PAL_NONE, ti, z, foundation_part);
|
||||
DrawSelectionSprite(SPR_DOT, PAL_NONE, ti, z, foundation_part);
|
||||
} else if (_thd.drawstyle & HT_RAIL) {
|
||||
/* autorail highlight piece under cursor */
|
||||
HighLightStyle type = _thd.drawstyle & HT_DIR_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user