r4529 - in trunk/data/qcsrc: common server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Sep 27 12:32:01 EDT 2008


Author: div0
Date: 2008-09-27 12:32:01 -0400 (Sat, 27 Sep 2008)
New Revision: 4529

Modified:
   trunk/data/qcsrc/common/mapinfo.qc
   trunk/data/qcsrc/server/teamplay.qc
Log:
fix fraglimit for win mode 3


Modified: trunk/data/qcsrc/common/mapinfo.qc
===================================================================
--- trunk/data/qcsrc/common/mapinfo.qc	2008-09-27 16:18:00 UTC (rev 4528)
+++ trunk/data/qcsrc/common/mapinfo.qc	2008-09-27 16:32:01 UTC (rev 4529)
@@ -508,7 +508,7 @@
 	if(pWantedType == MAPINFO_TYPE_CTF)
 	{
 		sa = car(s); if(sa == "") sa = "10";
-		if(cvar("g_ctf_win_mode") != 2)
+		if(cvar("g_ctf_win_mode") < 2)
 			cvar_set("fraglimit", sa);
 		s = cdr(s);
 	}

Modified: trunk/data/qcsrc/server/teamplay.qc
===================================================================
--- trunk/data/qcsrc/server/teamplay.qc	2008-09-27 16:18:00 UTC (rev 4528)
+++ trunk/data/qcsrc/server/teamplay.qc	2008-09-27 16:32:01 UTC (rev 4529)
@@ -222,7 +222,7 @@
 		gamemode_name = "Capture the Flag";
 		ActivateTeamplay();
 		g_ctf_win_mode = cvar("g_ctf_win_mode");
-		if(g_ctf_win_mode == 2)
+		if(g_ctf_win_mode >= 2)
 			fraglimit_override = cvar("g_ctf_capture_limit");
 		else
 			fraglimit_override = cvar("capturelimit_override");




More information about the nexuiz-commits mailing list