From: Rudolf Polzer Date: Tue, 20 Jul 2010 17:40:45 +0000 (+0200) Subject: add missing normalize X-Git-Tag: xonotic-v0.1.0preview~444 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15af05c40b8443f0f6da1991a83c1f7b12ece258;p=xonotic%2Fxonotic-data.pk3dir.git add missing normalize --- 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);