1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Handle > 255 rides in ride list window

This commit is contained in:
Ted John
2021-05-04 21:05:21 +01:00
committed by Gymnasiast
parent 1bfcac14db
commit 417c0f584f
3 changed files with 43 additions and 54 deletions

View File

@@ -1631,18 +1631,6 @@ void window_event_scroll_paint_call(rct_window* w, rct_drawpixelinfo* dpi, int32
w->event_handlers->scroll_paint(w, dpi, scrollIndex);
}
/**
* Bubbles an item one position up in the window list. This is done by swapping
* the two locations.
* rct2: New function not from rct2
*/
void window_bubble_list_item(rct_window* w, int32_t item_position)
{
char swap = w->list_item_positions[item_position];
w->list_item_positions[item_position] = w->list_item_positions[item_position + 1];
w->list_item_positions[item_position + 1] = swap;
}
/**
*
* rct2: 0x006ED710