Fix viewport town/industry tooltips shown on mouseover in right-click mode

This commit is contained in:
Jonathan G Rennison
2022-03-30 17:07:15 +01:00
parent 5f511f8a65
commit f86f77b7a5
3 changed files with 3 additions and 3 deletions

View File

@@ -505,7 +505,7 @@ struct MainWindow : Window
virtual void OnMouseOver(Point pt, int widget) override
{
if (pt.x != -1 && _game_mode != GM_MENU && (_mouse_hovering || _settings_client.gui.hover_delay_ms == 0)) {
if (pt.x != -1 && _game_mode != GM_MENU && (_settings_client.gui.hover_delay_ms == 0 ? _right_button_down : _mouse_hovering)) {
/* Show tooltip with last month production or town name */
const Point p = GetTileBelowCursor();
const TileIndex tile = TileVirtXY(p.x, p.y);