mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #2740. Swinging animations should now work correctly
This commit is contained in:
parent
3b760ba39c
commit
599d806113
|
@ -5567,7 +5567,7 @@ static int vehicle_get_swing_amount(rct_vehicle *vehicle)
|
|||
static void vehicle_update_swinging_car(rct_vehicle *vehicle)
|
||||
{
|
||||
sint32 dword_F64E08 = RCT2_GLOBAL(0x00F64E08, sint32);
|
||||
vehicle->var_4E = (-vehicle->swinging_car_var_0) >> 6;
|
||||
vehicle->var_4E += (-vehicle->swinging_car_var_0) >> 6;
|
||||
int swingAmount = vehicle_get_swing_amount(vehicle);
|
||||
if (swingAmount < 0) {
|
||||
vehicle->var_4E -= dword_F64E08 >> (-swingAmount);
|
||||
|
|
|
@ -148,7 +148,7 @@ typedef struct {
|
|||
sint8 ferris_wheel_var_1; // 0x4D
|
||||
};
|
||||
};
|
||||
uint16 var_4E;
|
||||
sint16 var_4E;
|
||||
uint8 status; // 0x50
|
||||
uint8 sub_state; // 0x51
|
||||
uint16 peep[32]; // 0x52
|
||||
|
|
Loading…
Reference in New Issue