r3220 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jan 22 07:56:01 EST 2008


Author: div0
Date: 2008-01-22 07:56:00 -0500 (Tue, 22 Jan 2008)
New Revision: 3220

Modified:
   trunk/data/qcsrc/server/mode_onslaught.qc
Log:
handle self/oself CORRECTLY this time


Modified: trunk/data/qcsrc/server/mode_onslaught.qc
===================================================================
--- trunk/data/qcsrc/server/mode_onslaught.qc	2008-01-22 10:05:10 UTC (rev 3219)
+++ trunk/data/qcsrc/server/mode_onslaught.qc	2008-01-22 12:56:00 UTC (rev 3220)
@@ -353,6 +353,7 @@
 		onslaught_updatelinks();
 
 		// Use targets now (somebody make sure this is in the right place..)
+		oself = self;
 		self = self.owner;
 		activator = self.owner;
 		SUB_UseTargets ();
@@ -379,7 +380,6 @@
 void() onslaught_controlpoint_icon_buildthink =
 {
 	local entity oself;
-	oself = self;
 
 	self.nextthink = time + 0.1;
 	self.health = self.health + self.count;
@@ -394,6 +394,7 @@
 		onslaught_updatelinks();
 
 		// Use targets now (somebody make sure this is in the right place..)
+		oself = self;
 		self = self.owner;
 		activator = self;
 		SUB_UseTargets ();




More information about the nexuiz-commits mailing list