r5128 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Nov 27 13:20:51 EST 2008


Author: div0
Date: 2008-11-27 13:20:49 -0500 (Thu, 27 Nov 2008)
New Revision: 5128

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
call the WC helper for assault and onslaught (although its results are not used). Makes sure the worldstatus is always set.


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2008-11-27 15:09:59 UTC (rev 5127)
+++ trunk/data/qcsrc/server/g_world.qc	2008-11-27 18:20:49 UTC (rev 5128)
@@ -1198,6 +1198,9 @@
 {
 	entity head;
 	local float t1, t2, t3, t4;
+
+	WinningConditionHelper(); // set worldstatus
+
 	// first check if the game has ended
 	t1 = t2 = t3 = t4 = 0;
 	head = find(world, classname, "onslaught_generator");
@@ -1252,8 +1255,10 @@
 float WinningCondition_Assault()
 {
 	local float status;
+
+	WinningConditionHelper(); // set worldstatus
+
 	status = WINNING_NO;
-
 	// as the timelimit has not yet passed just assume the defending team will win
 	if(assault_attacker_team == COLOR_TEAM1)
 	{




More information about the nexuiz-commits mailing list