This commit is contained in:
Alayan 2019-04-18 18:04:34 +02:00
parent ab18b6cba8
commit 5ec783db3d

View File

@ -2351,7 +2351,8 @@ void Kart::crashed(AbstractKart *k, bool update_attachments)
*/
void Kart::crashed(const Material *m, const Vec3 &normal)
{
playCrashSFX(m, NULL);
if (m && !(m->getCollisionReaction() == Material::RESCUE))
playCrashSFX(m, NULL);
#ifdef DEBUG
// Simple debug output for people playing without sound.
// This makes it easier to see if a kart hit the track (esp.