mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #4689. Object selction tabs sometimes flicker.
Issue caused by switching between tabs when half way through tab animation. The frame number would not be reset until the next frame and this would cause a split second glitch when moving from a long animation tab to a short animation tab. Issue fixed by reseting the frame number when switching tabs.
This commit is contained in:
parent
cc0c552fa1
commit
8466de7cbf
|
@ -1474,6 +1474,7 @@ static void window_editor_object_set_page(rct_window *w, int page)
|
|||
w->selected_list_item = -1;
|
||||
w->object_entry = (rct_object_entry *)-1;
|
||||
w->scrolls[0].v_top = 0;
|
||||
w->frame_no = 0;
|
||||
|
||||
if (page == WINDOW_OBJECT_SELECTION_PAGE_RIDE_VEHICLES_ATTRACTIONS) {
|
||||
_listSortType = RIDE_SORT_TYPE;
|
||||
|
|
Loading…
Reference in New Issue