diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 11:55:00 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:30 +0000 |
commit | 1402c0d169f3db4af74084cd323312c05b14db3b (patch) | |
tree | 6fed79105f6830d6517d925decf8990337f2b7cc /src | |
parent | 7f16b7c59b8c84120eac6dfef4b78cea297b9e67 (diff) |
* fix for jump sometimes giving less height than intended (bug 3634)
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 8cd44bb3..79ede29a 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -809,6 +809,9 @@ static qboolean PM_CheckJump( void ) // jump away from wall BG_GetClientNormal( pm->ps, normal ); + + if( pm->ps->velocity[ 2 ] < 0 ) + pm->ps->velocity[ 2 ] = 0; VectorMA( pm->ps->velocity, BG_Class( pm->ps->stats[ STAT_CLASS ] )->jumpMagnitude, normal, pm->ps->velocity ); |