forked from rosebudai/OpenRCT2-Web
Fix #4222: Artifacts with uncap fps on
This commit is contained in:
1 parent
680f7b7770
commit
802fcedb6f
1 file changed
+4
-6
+4
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user