r2452 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed May 2 12:14:46 EDT 2007


Author: div0
Date: 2007-05-02 12:14:46 -0400 (Wed, 02 May 2007)
New Revision: 2452

Modified:
   trunk/data/qcsrc/server/keyhunt.qc
Log:
oops... clean up message mess


Modified: trunk/data/qcsrc/server/keyhunt.qc
===================================================================
--- trunk/data/qcsrc/server/keyhunt.qc	2007-05-02 16:07:14 UTC (rev 2451)
+++ trunk/data/qcsrc/server/keyhunt.qc	2007-05-02 16:14:46 UTC (rev 2452)
@@ -411,10 +411,11 @@
 	DistributeEvenly_Init(score, kh_teams);
 	// twice the score for 3 team games, three times the score for 4 team games!
 	// note: for a win by destroying the key, this should NOT be applied
+	FOR_EACH_KH_KEY(key)
+		kh_Scores_Event(key.owner, key, "capture", DistributeEvenly_Get(1), 0);
+
 	first = TRUE;
 	FOR_EACH_KH_KEY(key)
-	{
-		kh_Scores_Event(key.owner, key, "capture", DistributeEvenly_Get(1), 0);
 		if(key.owner.kh_next == key)
 		{
 			if(!first)
@@ -422,7 +423,7 @@
 			bprint(key.owner.netname);
 			first = FALSE;
 		}
-	}
+	bprint("^7 captured the keys for the ", ColoredTeamName(teem), "\n");
 
 	first = TRUE;
 	FOR_EACH_KH_KEY(key)
@@ -443,7 +444,6 @@
 		te_lightning2(world, lastorigin, firstorigin);
 	}
 
-	bprint("^7 captured the keys for the ", ColoredTeamName(teem), "\n");
 	sound(world, CHAN_AUTO, kh_sound_capture, 1, ATTN_NONE);
 	kh_FinishRound();
 }




More information about the nexuiz-commits mailing list