1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix #4222: Artifacts with uncap fps on

This commit is contained in:
Yaroslav Tretyakov
2016-08-06 10:21:08 -06:00
committed by Ted John
parent 680f7b7770
commit 802fcedb6f

View File

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