mirror of https://github.com/OpenTTD/OpenTTD
Fix 4da83d2f66: Remove measurement tooltips when completed.
parent
0837a1a398
commit
1585c12bb9
|
@ -2514,7 +2514,7 @@ static inline void ShowMeasurementTooltips(StringID str, uint paramcount, const
|
||||||
GuiShowTooltips(_thd.GetCallbackWnd(), str, paramcount, params, close_cond);
|
GuiShowTooltips(_thd.GetCallbackWnd(), str, paramcount, params, close_cond);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HideMeasurementTooltips()
|
static void HideMeasurementTooltips()
|
||||||
{
|
{
|
||||||
DeleteWindowById(WC_TOOLTIPS, 0);
|
DeleteWindowById(WC_TOOLTIPS, 0);
|
||||||
}
|
}
|
||||||
|
@ -3192,6 +3192,7 @@ EventState VpHandlePlaceSizingDrag()
|
||||||
}
|
}
|
||||||
SetTileSelectSize(1, 1);
|
SetTileSelectSize(1, 1);
|
||||||
|
|
||||||
|
HideMeasurementTooltips();
|
||||||
w->OnPlaceMouseUp(_thd.select_method, _thd.select_proc, _thd.selend, TileVirtXY(_thd.selstart.x, _thd.selstart.y), TileVirtXY(_thd.selend.x, _thd.selend.y));
|
w->OnPlaceMouseUp(_thd.select_method, _thd.select_proc, _thd.selend, TileVirtXY(_thd.selstart.x, _thd.selstart.y), TileVirtXY(_thd.selend.x, _thd.selend.y));
|
||||||
|
|
||||||
return ES_HANDLED;
|
return ES_HANDLED;
|
||||||
|
|
Loading…
Reference in New Issue