From 239bf90a0236dc67b8dfb7531bc798befe57aa0d Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 8 Aug 2003 22:22:30 +0000 Subject: [PATCH] fixed compile errors git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3378 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_user.qc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sv_user.qc b/sv_user.qc index 62f218b9..27aee627 100644 --- a/sv_user.qc +++ b/sv_user.qc @@ -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; -- 2.39.2