diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 11:54:07 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:29 +0000 |
commit | 3a9eef8972336ad90ac314fbdb7adc4db6cbcbaf (patch) | |
tree | 884ec8992915edabad04869212a155aaf9b5b7dd /src | |
parent | 8d6eec5901ba6c86c2c24cfb5d88e9570612b510 (diff) |
Ensure non-walljumping classes can't walljump
Diffstat (limited to 'src')
-rw-r--r-- | src/game/bg_pmove.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index a70ef001..8cd44bb3 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -630,6 +630,9 @@ static qboolean PM_CheckWallJump( void ) float upFraction = 1.5f; trace_t trace; + if( !( BG_Class( pm->ps->stats[ STAT_CLASS ] )->abilities & SCA_WALLJUMPER ) ) + return qfalse; + ProjectPointOnPlane( movedir, pml.forward, refNormal ); VectorNormalize( movedir ); |