r2090 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jan 3 14:15:26 EST 2007


Author: div0
Date: 2007-01-03 14:15:25 -0500 (Wed, 03 Jan 2007)
New Revision: 2090

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
cnt -> autoscreenshot to make sure (cnt is already used for the previous weapon)


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2007-01-03 19:14:36 UTC (rev 2089)
+++ trunk/data/qcsrc/server/g_world.qc	2007-01-03 19:15:25 UTC (rev 2090)
@@ -721,13 +721,14 @@
 When the player presses attack or jump, change to the next level
 ============
 */
+.float autoscreenshot;
 void() IntermissionThink =
 {
 	if(cvar("sv_autoscreenshot"))
-	if(self.cnt)
-	if(time > self.cnt)
+	if(self.autoscreenshot)
+	if(time > self.autoscreenshot)
 	{
-		self.cnt = FALSE;
+		self.autoscreenshot = FALSE;
 		if(clienttype(self) == CLIENTTYPE_REAL)
 			stuffcmd(self, "\nscreenshot\necho \"^5A screenshot has been taken at request of the server.\"\n");
 		return;
@@ -897,7 +898,7 @@
 		other.movetype = MOVETYPE_NONE;
 		other.angles = other.v_angle;
 		other.angles_x = other.angles_x * -1;
-		other.cnt = time + 0.8;	// used for autoscreenshot
+		other.autoscreenshot = time + 0.8;	// used for autoscreenshot
 
 		self = other;
 




More information about the nexuiz-commits mailing list