fix missing sqrt in sideways friction
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 30 Jan 2010 18:27:06 +0000 (18:27 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 30 Jan 2010 18:27:06 +0000 (18:27 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8598 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/cl_physics.qc

index 0d81e3e..48318f5 100644 (file)
@@ -478,7 +478,10 @@ void PM_Accelerate(vector wishdir, float wishspeed, float wishspeed0, float acce
                if(fminimum <= 0)
                        vel_perpend = vel_perpend * f;
                else
-                       vel_perpend = vel_perpend * min(1, max(fminimum, f));
+               {
+                       fminimum = sqrt(fminimum);
+                       vel_perpend = vel_perpend * bound(fminimum, f, 1);
+               }
        }
        else
                vel_perpend = vel_perpend * (1 - frametime * wishspeed * sidefric);