From 3a5673ab3eb0786c2ee633da398f87a9c74af47f Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 20 Nov 2008 22:25:13 +0000 Subject: [PATCH] fixed crouch sound positioning git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3692 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- 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 dc6acc08..f3898d47 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -708,7 +708,7 @@ void updatecrouch(playerent *p, bool on) const float crouchspeed = 0.6f; p->crouching = on; p->eyeheightvel = on ? -crouchspeed : crouchspeed; - playsoundc(on ? S_CROUCH : S_UNCROUCH); + if(p==player1) playsoundc(on ? S_CROUCH : S_UNCROUCH); } void crouch(bool on)