1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Convert g_window_list to a std::vector

This commit is contained in:
Ted John
2018-06-16 02:14:59 +01:00
parent a716b4aa28
commit 0f6138f8b6
9 changed files with 472 additions and 437 deletions

View File

@@ -106,9 +106,9 @@ static void input_update_tooltip(rct_window * w, rct_widgetindex widgetIndex, si
*/
void game_handle_input()
{
for (rct_window * w = g_window_list; w < gWindowNextSlot; w++)
for (auto& w : g_window_list)
{
window_event_unknown_07_call(w);
window_event_unknown_07_call(&w);
}
invalidate_all_windows_after_input();
@@ -135,9 +135,9 @@ void game_handle_input()
process_mouse_tool(x, y);
}
for (rct_window * w = g_window_list; w < gWindowNextSlot; w++)
for (auto& w : g_window_list)
{
window_event_unknown_08_call(w);
window_event_unknown_08_call(&w);
}
}