mirror of https://github.com/OpenTTD/OpenTTD
Fix 4da83d2f66: Remove measurement tooltips when completed.
parent
e3a082ce7c
commit
79d2acff24
|
@ -2331,7 +2331,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);
|
||||||
}
|
}
|
||||||
|
@ -3009,6 +3009,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