From 7aebdcd5346fb13187700d79fdf46ebccea0ae92 Mon Sep 17 00:00:00 2001 From: zsilencer Date: Sat, 3 Oct 2015 13:22:28 -0600 Subject: [PATCH] fix #2009 --- src/openrct2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2.c b/src/openrct2.c index 7d4ce2d7b3..c446c4692a 100644 --- a/src/openrct2.c +++ b/src/openrct2.c @@ -354,6 +354,8 @@ static void openrct2_loop() uncapTick = currentTick - 25 - 1; } + platform_process_messages(); + while (uncapTick <= currentTick && currentTick - uncapTick > 25) { // Get the original position of each sprite for (uint16 i = 0; i < MAX_SPRITES; i++) { @@ -391,7 +393,6 @@ static void openrct2_loop() invalidate_sprite_2(&g_sprite_list[i]); } - platform_process_messages(); rct2_draw(); platform_draw(); fps++;