From 87bb20e799d844bfff7b4889dbe830d1ca8c22d0 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sat, 7 Feb 2015 15:01:57 +0100 Subject: [PATCH] Fix sound bug on shallow water --- 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 6e203c3f..fef747f4 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -637,7 +637,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) { if(!pl->lastsplash || lastmillis-pl->lastsplash>500) { - audiomgr.playsound(S_SPLASH2, pl); + audiomgr.playsound(S_SPLASH2, &pl->o); pl->lastsplash = lastmillis; } if(pl==player1) pl->vel.z = 0;