diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-12-13 20:08:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 12:08:59 -0700 |
| commit | 4e51b7d5b6a9b89deb5ef135deec0ee5f0087e7c (patch) | |
| tree | 5c9d1156a8785e1f0736a89c6fa512fae8e4a3d1 /src/engine/vehicles/Train.cpp | |
| parent | b934e98fc34964970ab5efacb2fb7c3372ae0b1a (diff) | |
Document sound effects (pr 735 from the decomp) (#589)
Co-authored-by: Jed Grabman <JedGrabman@users.noreply.github.com>
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine/vehicles/Train.cpp')
| -rw-r--r-- | src/engine/vehicles/Train.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/vehicles/Train.cpp b/src/engine/vehicles/Train.cpp index 8b728375e..f76592756 100644 --- a/src/engine/vehicles/Train.cpp +++ b/src/engine/vehicles/Train.cpp @@ -272,13 +272,13 @@ void ATrain::VehicleCollision(s32 playerId, Player* player) { if ((z_dist > -100.0) && (z_dist < 100.0)) { if (is_collide_with_vehicle(trainCar->position[0], trainCar->position[2], trainCar->velocity[0], trainCar->velocity[2], 60.0f, 20.0f, playerPosX, playerPosZ) == 1) { - player->soundEffects |= REVERSE_SOUND_EFFECT; + player->triggers |= VERTICAL_TUMBLE_TRIGGER; } trainCar = &Tender; if (trainCar->isActive == 1) { if (is_collide_with_vehicle(trainCar->position[0], trainCar->position[2], trainCar->velocity[0], trainCar->velocity[2], 30.0f, 20.0f, playerPosX, playerPosZ) == 1) { - player->soundEffects |= REVERSE_SOUND_EFFECT; + player->triggers |= VERTICAL_TUMBLE_TRIGGER; } } } @@ -294,7 +294,7 @@ void ATrain::VehicleCollision(s32 playerId, Player* player) { if (is_collide_with_vehicle(trainCar->position[0], trainCar->position[2], trainCar->velocity[0], trainCar->velocity[2], 30.0f, 20.0f, playerPosX, playerPosZ) == 1) { - player->soundEffects |= REVERSE_SOUND_EFFECT; + player->triggers |= VERTICAL_TUMBLE_TRIGGER; } } } |
