Fix #7748. Move tooltip timeout reset to correct location (#13132)

* Fix #7748. Move tooltip timeout reset to correct location

Mistake made in implementation

* Add changelog entry
This commit is contained in:
Duncan 2020-10-09 16:53:31 +01:00 committed by GitHub
parent 84c9ff833a
commit 197bb897bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
- Fix: [#4041] Garbled park option on scenario editor with custom theme.
- Fix: [#5904] Empty errors on tile inspector base height change.
- Fix: [#6086] Cannot install existing track design with another name.
- Fix: [#7748] Tooltips would not timeout for normal UI elements.
- Fix: [#8015] RCT2 files are not found when put into the OpenRCT2 folder.
- Fix: [#8957] Error title missing when building with insufficient funds
- Fix: [#10186] Placing multiple saved rides ignores design name (original bug).

View File

@ -931,10 +931,6 @@ static void input_widget_over(const ScreenCoordsXY& screenCoords, rct_window* w,
{
input_update_tooltip(w, widgetIndex, screenCoords);
}
gTooltipTimeout = 0;
gTooltipCursorX = screenCoords.x;
gTooltipCursorY = screenCoords.y;
}
/**
@ -1439,6 +1435,10 @@ static void input_update_tooltip(rct_window* w, rct_widgetindex widgetIndex, con
window_tooltip_open(w, widgetIndex, screenCoords);
}
}
gTooltipTimeout = 0;
gTooltipCursorX = screenCoords.x;
gTooltipCursorY = screenCoords.y;
}
else
{