From 77718ac7fc4762604a676552d51c519d7c88a46e Mon Sep 17 00:00:00 2001 From: tovjemam Date: Sun, 14 Jun 2026 01:04:56 +0200 Subject: [PATCH] Fix new vehicle crash sounds playing in high speed turns with no crash --- src/game/vehicle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/vehicle.cpp b/src/game/vehicle.cpp index 2e56c2a..1ef949a 100644 --- a/src/game/vehicle.cpp +++ b/src/game/vehicle.cpp @@ -371,6 +371,9 @@ void game::Vehicle::UpdateCrash() float diff = glm::distance(velocity, prev_velocity_); prev_velocity_ = velocity; + if (glm::length2(velocity) > 9.0f) + diff = 0.0f; + float snd_crash_intensity = glm::max(diff * 500.0f, crash_intensity_); if (snd_crash_intensity > 1000.0f)