From 0f5075f0244bd444b2bc1feb68f1488331a488a3 Mon Sep 17 00:00:00 2001 From: spacek531 Date: Tue, 24 Aug 2021 11:28:30 -0700 Subject: [PATCH] fix triggers --- src/openrct2/ride/Vehicle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 1991d873e2..d635bcae89 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -3646,9 +3646,9 @@ void Vehicle::UpdateCollisionSetup() } train->IsCrashedVehicle = true; - train->animationState = scenario_rand(); + train->animationState = scenario_rand() & 0xFFFF; - train->animation_frame = (train->animationState >> 16) & 0x7; + train->animation_frame = scenario_rand() & 0x7; train->sprite_width = 13; train->sprite_height_negative = 45; train->sprite_height_positive = 5; @@ -5512,9 +5512,9 @@ void Vehicle::UpdateCrash() ExplosionCloud::Create({ curVehicle->x + xOffset, curVehicle->y + yOffset, curVehicle->z }); } } - if (curVehicle->animationState <= 58248) + if (curVehicle->animationState <= 0xe388) { - curVehicle->animationState += 7281; + curVehicle->animationState += 0x1c71; } else {