From b246e6e15361c7eb5f87ab4812de0dd8db5e7be2 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sat, 24 May 2014 17:42:56 +0200 Subject: [PATCH] fix: don't play hard landing sounds on water transitions fixes issue #57 --- source/src/physics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index f64350b1..1dcff6c8 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -476,7 +476,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } } - if(timeinair > 200 && !pl->timeinair) + if(timeinair > 200 && !pl->timeinair && pl->inwater == water) { int sound = timeinair > 800 ? S_HARDLAND : S_SOFTLAND; if(pl->state!=CS_DEAD)