r3742 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Jun 30 02:54:23 EDT 2008
Author: div0
Date: 2008-06-30 02:54:23 -0400 (Mon, 30 Jun 2008)
New Revision: 3742
Modified:
trunk/data/qcsrc/server/cl_physics.qc
Log:
moving the mouse is also non-idling. I wonder if chatting should count as not idling too...
Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc 2008-06-30 06:45:45 UTC (rev 3741)
+++ trunk/data/qcsrc/server/cl_physics.qc 2008-06-30 06:54:23 UTC (rev 3742)
@@ -112,6 +112,7 @@
.vector movement_old;
.float buttons_old;
+.vector v_angle_old;
void Nixnex_GiveCurrentWeapon();
void SV_PlayerPhysics()
@@ -129,6 +130,10 @@
self.parm_idlesince = time;
self.movement_old = self.movement;
+ if(self.v_angle != self.v_angle_old)
+ self.parm_idlesince = time;
+ self.v_angle_old = self.v_angle;
+
if(time > self.shtest_next)
{
if(self.shtest_next > 0)
More information about the nexuiz-commits
mailing list