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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jul 16 08:44:28 EDT 2009


Author: div0
Date: 2009-07-16 08:44:28 -0400 (Thu, 16 Jul 2009)
New Revision: 7225

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


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2009-07-15 19:00:01 UTC (rev 7224)
+++ trunk/data/qcsrc/server/race.qc	2009-07-16 12:44:28 UTC (rev 7225)
@@ -723,12 +723,6 @@
 void penalty_touch()
 {
 	EXACTTRIGGER_TOUCH;
-	race_ImposePenaltyTime(other, self.race_penalty, self.race_penalty_reason);
-}
-
-void penalty_use()
-{
-	other = activator;
 	if(other.race_lastpenalty != self)
 	{
 		other.race_lastpenalty = self;
@@ -736,6 +730,11 @@
 	}
 }
 
+void penalty_use()
+{
+	race_ImposePenaltyTime(activator, self.race_penalty, self.race_penalty_reason);
+}
+
 void spawnfunc_trigger_race_penalty()
 {
 	EXACTTRIGGER_INIT;



More information about the nexuiz-commits mailing list