From f3a6a36a3572ac823f48bfac5241c5ee64a1b650 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Sun, 10 Apr 2005 19:57:28 +0000 Subject: [PATCH] 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@48 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/pm_shared/pm_shared.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/source/pm_shared/pm_shared.cpp b/main/source/pm_shared/pm_shared.cpp index 22530e08..a1051b04 100644 --- a/main/source/pm_shared/pm_shared.cpp +++ b/main/source/pm_shared/pm_shared.cpp @@ -4075,7 +4075,8 @@ void PM_UnDuck( void ) 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 theCrouchingHull = AvHMUGetHull(true, pmove->iuser3);