forked from rosebudai/OpenRCT2-Web
Prevent new ride window from invalidating on every frame
This commit is contained in:
1 parent
c37fc885c5
commit
a47ee3f7de
1 file changed
+1
-1
@@ -345,7 +345,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
_windowNewRideTabScroll[_currentTab] = scrolls[0].contentOffsetY;
|
||||
|
||||
// Remove highlight when mouse leaves rides list
|
||||
if (!WidgetIsHighlighted(*this, WIDX_RIDE_LIST))
|
||||
if (!WidgetIsHighlighted(*this, WIDX_RIDE_LIST) && _newRideVars.HighlightedRide.Type != kRideTypeNull)
|
||||
{
|
||||
_newRideVars.HighlightedRide = { kRideTypeNull, kObjectEntryIndexNull };
|
||||
InvalidateWidget(WIDX_RIDE_LIST);
|
||||
|
||||
Reference in new issue
Block a user