Index: code/game/bg_pmove.c =================================================================== --- code/game/bg_pmove.c (revision 1014) +++ code/game/bg_pmove.c (working copy) @@ -698,7 +698,6 @@ float scale; usercmd_t cmd; float accelerate; - float vel; if ( pm->waterlevel > 2 && DotProduct( pml.forward, pml.groundTrace.plane.normal ) > 0 ) { // begin swimming @@ -787,16 +786,8 @@ // pm->ps->velocity[2] = 0; } - vel = VectorLength(pm->ps->velocity); + PM_ClipVelocity( pm->ps->velocity, pml.groundTrace.plane.normal, pm->ps->velocity, OVERCLIP ); - // 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;