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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 9 06:12:43 EDT 2009


Author: div0
Date: 2009-08-09 06:12:43 -0400 (Sun, 09 Aug 2009)
New Revision: 7404

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
allow playing tetris while spectating


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-08-09 10:07:28 UTC (rev 7403)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-08-09 10:12:43 UTC (rev 7404)
@@ -2329,6 +2329,11 @@
 		self.max_armorvalue = 0;
 	}
 
+#ifdef TETRIS
+	if (TetrisPreFrame())
+		return;
+#endif
+
 	if(frametime)
 		antilag_record(self);
 
@@ -2571,11 +2576,6 @@
 	}
 
 	target_voicescript_next(self);
-
-#ifdef TETRIS
-	if (TetrisPreFrame())
-		return;
-#endif
 }
 
 // on dragger:
@@ -2795,6 +2795,14 @@
 		self.idlekick_lasttimeleft = timeleft;
 	}
 
+#ifdef TETRIS
+	if(self.classname != "player")
+		if(self.impulse == 100)
+			ImpulseCommands();
+	if (TetrisPostFrame())
+		return;
+#endif
+
 	if(sv_cheats || self.maycheat)
 		if(Drag_CanDrag(self))
 			if(self.BUTTON_DRAG)
@@ -2879,9 +2887,4 @@
 
 	if(self.waypointsprite_attachedforcarrier)
 		WaypointSprite_UpdateHealth(self.waypointsprite_attachedforcarrier, '1 0 0' * healtharmor_maxdamage(self.health, self.armorvalue, cvar("g_balance_armor_blockpercent")));
-
-#ifdef TETRIS
-	if (TetrisPostFrame())
-		return;
-#endif
 }



More information about the nexuiz-commits mailing list