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:
committed by
Ted John
parent
680f7b7770
commit
802fcedb6f
@@ -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