Permalink
Browse files

Allow holding jump to jump

  • Loading branch information...
DolceTriade committed Dec 20, 2015
1 parent 889c32c commit 26e6a24ab9150ac2d9cdc2f42c8f3d9a80fbacd0
Showing with 1 addition and 11 deletions.
  1. +1 −11 src/shared/bg_pmove.cpp
@@ -1176,7 +1176,7 @@ PM_CheckWallRun
=============
*/
static bool PM_CheckWallRun()
{
{
int cost;
float jumpMag;
Vec3 forward, origin, velocity, normal;
@@ -1198,10 +1198,6 @@ static bool PM_CheckWallRun()
if ( pm->ps->pm_flags & PMF_TIME_WALLJUMP )
return false;

// must wait for jump to be released
if ( pm->ps->pm_flags & PMF_JUMP_HELD && pm->ps->grapplePoint[ 2 ] == 1.0f )
return false;

if ( pm->ps->stats[ STAT_STAMINA ] < cost )
return false;

@@ -1537,12 +1533,6 @@ static bool PM_CheckJump()
return false;
}

// must wait for jump to be released
if ( pm->ps->pm_flags & PMF_JUMP_HELD )
{
return false;
}

staminaJumpCost = BG_Class( pm->ps->stats[ STAT_CLASS ] )->staminaJumpCost;
jetpackJump = false;

0 comments on commit 26e6a24

Please sign in to comment.