From 11a98d2e232cfdb79e4fc556f925fe98037a3d76 Mon Sep 17 00:00:00 2001 From: zsilencer Date: Fri, 10 Jul 2015 20:13:19 -0600 Subject: [PATCH] better solution to #1572 --- src/openrct2.c | 5 ----- src/rct2.c | 8 +++----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/openrct2.c b/src/openrct2.c index bcada4e0dc..b6a5dcb8fe 100644 --- a/src/openrct2.c +++ b/src/openrct2.c @@ -330,11 +330,6 @@ static void openrct2_loop() invalidate_sprite(&g_sprite_list[i]); } - // Viewports need to be updated to reduce chopiness of those which follow sprites - for (rct_window *w = g_window_list; w < RCT2_GLOBAL(RCT2_ADDRESS_NEW_WINDOW_PTR, rct_window*); w++) { - viewport_update_sprite_follow(w); - } - platform_process_messages(); rct2_draw(); platform_draw(); diff --git a/src/rct2.c b/src/rct2.c index b5b475e126..b9a231003d 100644 --- a/src/rct2.c +++ b/src/rct2.c @@ -218,7 +218,9 @@ void rct2_draw() { // Handles picked-up peep and rain redraw redraw_peep_and_rain(); - + window_update_all(); + update_rain_animation(); + update_palette_effects(); gfx_draw_all_dirty_blocks(); console_draw(RCT2_ADDRESS(RCT2_ADDRESS_SCREEN_DPI, rct_drawpixelinfo)); @@ -231,10 +233,6 @@ void rct2_draw() } else { //game } - - window_update_all(); - update_rain_animation(); - update_palette_effects(); } int rct2_open_file(const char *path)