diff options
-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; |