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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user