summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 11:55:00 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:30 +0000
commit1402c0d169f3db4af74084cd323312c05b14db3b (patch)
tree6fed79105f6830d6517d925decf8990337f2b7cc /src/game
parent7f16b7c59b8c84120eac6dfef4b78cea297b9e67 (diff)
* fix for jump sometimes giving less height than intended (bug 3634)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_pmove.c3
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 );