Fix #2740. Swinging animations should now work correctly

This commit is contained in:
duncanspumpkin 2016-01-16 10:11:56 +00:00
parent 3b760ba39c
commit 599d806113
2 changed files with 2 additions and 2 deletions

View File

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

View File

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