From 3b9e1e27a21cef8b3b1fa0a14c47299622e29609 Mon Sep 17 00:00:00 2001 From: Tim Angus <tim@ngus.net> Date: Thu, 7 Dec 2006 17:09:11 +0000 Subject: * Fix for the Q3 "overbounce" bug (apparently) --- src/game/bg_pmove.c | 7 ------- 1 file changed, 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; -- cgit