From 15af05c40b8443f0f6da1991a83c1f7b12ece258 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 20 Jul 2010 19:40:45 +0200 Subject: [PATCH] add missing normalize --- qcsrc/server/cl_physics.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 3c830e6d2..05f8676f2 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -1205,7 +1205,7 @@ void SV_PlayerPhysics() // CPM if(sv_airstopaccelerate) - airaccel = airaccel + (sv_airstopaccelerate*maxspd_mod - airaccel) * max(0, -(self.velocity * wishdir)); + airaccel = airaccel + (sv_airstopaccelerate*maxspd_mod - airaccel) * max(0, -(normalize(self.velocity) * wishdir)); // note that for straight forward jumping: // step = accel * frametime * wishspeed0; // accel = bound(0, wishspeed - vel_xy_current, step) * accelqw + step * (1 - accelqw); -- 2.39.2