1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

better solution to #1572

This commit is contained in:
zsilencer
2015-07-10 20:13:19 -06:00
parent dc707ca428
commit 11a98d2e23
2 changed files with 3 additions and 10 deletions

View File

@@ -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();

View File

@@ -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)