fixed crouch sound in mid-air (BUG 2302798)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3586 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-11-17 20:34:40 +00:00
parent d09a214942
commit 436c96236d
+1 -1
View File
@@ -708,13 +708,13 @@ 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);
}
void crouch(bool on)
{
if(player1->isspectating()) return;
player1->trycrouch = on;
playsoundc(on ? S_CROUCH : S_UNCROUCH);
}
COMMAND(backward, ARG_DOWN);