r4348 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 5 03:30:28 EDT 2008


Author: div0
Date: 2008-09-05 03:30:23 -0400 (Fri, 05 Sep 2008)
New Revision: 4348

Modified:
   trunk/data/qcsrc/server/race.qc
Log:
minor race targeting fix


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2008-09-05 06:59:20 UTC (rev 4347)
+++ trunk/data/qcsrc/server/race.qc	2008-09-05 07:30:23 UTC (rev 4348)
@@ -301,6 +301,8 @@
 
 void checkpoint_touch()
 {
+	EXACTTRIGGER_TOUCH;
+
 	if(other.classname == "porto")
 	{
 		// do not allow portalling through checkpoints
@@ -318,16 +320,14 @@
 	 */
 	Portal_ClearAll(other);
 
-	/*
-	 * Trigger targets
-	 */
-	activator = other;
-	SUB_UseTargets();
-
-	EXACTTRIGGER_TOUCH;
-
 	if(other.race_checkpoint == -1 || other.race_checkpoint == self.race_checkpoint)
 	{
+		/*
+		 * Trigger targets
+		 */
+		activator = other;
+		SUB_UseTargets();
+
 		other.race_checkpoint = race_NextCheckpoint(self.race_checkpoint);
 
 		race_SendTime(other, self.race_checkpoint, time - other.race_laptime, !!other.race_laptime);




More information about the nexuiz-commits mailing list