Mantis 0001011:

o Releasing duck quickly after pressing it will no longer make the player bounce

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@55 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-04-10 21:53:25 +00:00
parent 47dc455006
commit 9d5e302c9c

View file

@ -4075,7 +4075,8 @@ void PM_UnDuck( void )
VectorCopy( pmove->origin, newOrigin ); VectorCopy( pmove->origin, newOrigin );
if ( pmove->onground != -1 ) // tankefugl: remove the jump when pressing and releasing duck quickly
if ( pmove->onground != -1 && pmove->flags & FL_DUCKING && pmove->bInDuck == false)
{ {
int theStandingHull = AvHMUGetHull(false, pmove->iuser3); int theStandingHull = AvHMUGetHull(false, pmove->iuser3);
int theCrouchingHull = AvHMUGetHull(true, pmove->iuser3); int theCrouchingHull = AvHMUGetHull(true, pmove->iuser3);