Module darkplaces: Change committed
havoc at icculus.org
havoc at icculus.org
Fri Aug 8 18:22:40 EDT 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : darkplaces
Commit time: 2003-08-08 22:22:40 UTC
Log message:
fixed compile errors
Modified files:
sv_user.qc
------=MIME.60f66594b63ca0145c174753f3161477
Content-Type: text/plain; name="darkplaces.20030808.222240.havoc.diff"
Content-Disposition: attachment; filename="darkplaces.20030808.222240.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: darkplaces/sv_user.qc
diff -u darkplaces/sv_user.qc:1.1 darkplaces/sv_user.qc:1.2
--- darkplaces/sv_user.qc:1.1 Fri Aug 8 18:19:01 2003
+++ darkplaces/sv_user.qc Fri Aug 8 18:22:30 2003
@@ -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 @@
}
// 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;
More information about the twilight-commits
mailing list