mirror of https://github.com/OpenRCT2/OpenRCT2.git
better solution to #1572
This commit is contained in:
parent
dc707ca428
commit
11a98d2e23
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue