[nexuiz-commits] r7279 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jul 29 04:07:36 EDT 2009


Author: div0
Date: 2009-07-29 04:07:25 -0400 (Wed, 29 Jul 2009)
New Revision: 7279

Modified:
   trunk/data/qcsrc/server/cl_physics.qc
Log:
try to fixa speccer bug


Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc	2009-07-29 04:40:03 UTC (rev 7278)
+++ trunk/data/qcsrc/server/cl_physics.qc	2009-07-29 08:07:25 UTC (rev 7279)
@@ -527,29 +527,32 @@
 
 	self.items &~= IT_USING_JETPACK;
 
-	if(self.race_penalty)
-		if(time > self.race_penalty)
-			self.race_penalty = 0;
+	if(self.classname == "player")
+	{
+		if(self.race_penalty)
+			if(time > self.race_penalty)
+				self.race_penalty = 0;
 
-	not_allowed_to_move = 0;
-	if(self.race_penalty)
-		not_allowed_to_move = 1;
-	if(!cvar("sv_ready_restart_after_countdown"))
-	if(time < game_starttime)
-		not_allowed_to_move = 1;
+		not_allowed_to_move = 0;
+		if(self.race_penalty)
+			not_allowed_to_move = 1;
+		if(!cvar("sv_ready_restart_after_countdown"))
+		if(time < game_starttime)
+			not_allowed_to_move = 1;
 
-	if(not_allowed_to_move)
-	{
-		self.velocity = '0 0 0';
-		self.movetype = MOVETYPE_NONE;
-		self.disableclientprediction = 2;
+		if(not_allowed_to_move)
+		{
+			self.velocity = '0 0 0';
+			self.movetype = MOVETYPE_NONE;
+			self.disableclientprediction = 2;
+		}
+		else if(self.disableclientprediction == 2)
+		{
+			if(self.movetype == MOVETYPE_NONE)
+				self.movetype = MOVETYPE_WALK;
+			self.disableclientprediction = 0;
+		}
 	}
-	else if(self.disableclientprediction == 2)
-	{
-		if(self.movetype == MOVETYPE_NONE)
-			self.movetype = MOVETYPE_WALK;
-		self.disableclientprediction = 0;
-	}
 
 	if (self.movetype == MOVETYPE_NONE)
 		return;



More information about the nexuiz-commits mailing list