From 802fcedb6f9875d9cf077b7d1ef11bde65b34c1c Mon Sep 17 00:00:00 2001 From: Yaroslav Tretyakov Date: Sat, 6 Aug 2016 10:21:08 -0600 Subject: [PATCH] Fix #4222: Artifacts with uncap fps on --- src/world/sprite.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/world/sprite.c b/src/world/sprite.c index b19937fbc2..16e908a0ac 100644 --- a/src/world/sprite.c +++ b/src/world/sprite.c @@ -526,6 +526,10 @@ void sprite_move(sint16 x, sint16 y, sint16 z, rct_sprite* sprite){ sprite->unknown.z = z; return; } + sprite_set_coordinates(x, y, z, sprite); +} + +void sprite_set_coordinates(sint16 x, sint16 y, sint16 z, rct_sprite *sprite){ sint16 new_x = x, new_y = y, start_x = x; switch (get_current_rotation()){ case 0: @@ -555,12 +559,6 @@ void sprite_move(sint16 x, sint16 y, sint16 z, rct_sprite* sprite){ sprite->unknown.z = z; } -void sprite_set_coordinates(sint16 x, sint16 y, sint16 z, rct_sprite *sprite){ - sprite->unknown.x = x; - sprite->unknown.y = y; - sprite->unknown.z = z; -} - /** * * rct2: 0x0069EDB6