diff options
author | Tim Angus <tim@ngus.net> | 2006-12-07 17:09:11 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-12-07 17:09:11 +0000 |
commit | 3b9e1e27a21cef8b3b1fa0a14c47299622e29609 (patch) | |
tree | 797e371683727f5a4a3b7380851809a4549c951d | |
parent | 9f9385e29ea81cae3da66c5673e1b0a0c64d4744 (diff) |
* Fix for the Q3 "overbounce" bug (apparently)
-rw-r--r-- | src/game/bg_pmove.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 80ee0138..94571799 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -1174,7 +1174,6 @@ static void PM_WalkMove( void ) float scale; usercmd_t cmd; float accelerate; - float vel; if( pm->waterlevel > 2 && DotProduct( pml.forward, pml.groundTrace.plane.normal ) > 0 ) { @@ -1268,16 +1267,10 @@ static void PM_WalkMove( void ) // pm->ps->velocity[2] = 0; } - vel = VectorLength( pm->ps->velocity ); - // slide along the ground plane PM_ClipVelocity( pm->ps->velocity, pml.groundTrace.plane.normal, pm->ps->velocity, OVERCLIP ); - // don't decrease velocity when going up or down a slope - VectorNormalize( pm->ps->velocity ); - VectorScale( pm->ps->velocity, vel, pm->ps->velocity ); - // don't do anything if standing still if( !pm->ps->velocity[ 0 ] && !pm->ps->velocity[ 1 ] ) return; |