]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed compile errors
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Aug 2003 22:22:30 +0000 (22:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Aug 2003 22:22:30 +0000 (22:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3378 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.qc

index 62f218b90fd1c6a3fe977085804ed9889c0cd87a..27aee627a887dd0d58a8a246d9c990b0a70b2bb3 100644 (file)
@@ -1,5 +1,6 @@
 float lastclientthink, sv_maxspeed, sv_friction, sv_accelerate, sv_stopspeed;
-float sv_edgefriction, cl_rollspeed, cl_divspeed;
+float sv_edgefriction, cl_rollangle, cl_divspeed;
+.vector movement;
 
 // LordHavoc:
 // Highly optimized port of SV_ClientThink from engine code to QuakeC.
@@ -52,7 +53,12 @@ void() SV_PlayerPhysics =
        }
 
        // show 1/3 the pitch angle and all the roll angle
-       self.angles_z = bound(-1, self.velocity * v_right * cl_divspeed, 1) * cl_rollangle;
+       f = (self.velocity * v_right) * cl_divspeed;
+       if (f < -1)
+               f = -1;
+       if (f > 1)
+               f = 1;
+       self.angles_z = f * cl_rollangle;
        if (!self.fixangle)
        {
                self.angles_x = (self.v_angle_x + self.punchangle_x) * -0.333;