r3410 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Feb 23 15:28:50 EST 2008


Author: div0
Date: 2008-02-23 15:28:45 -0500 (Sat, 23 Feb 2008)
New Revision: 3410

Modified:
   trunk/data/qcsrc/server/ctf.qc
Log:
order strreplace arugments the right way to hide endless loop caused by Sajt ;)


Modified: trunk/data/qcsrc/server/ctf.qc
===================================================================
--- trunk/data/qcsrc/server/ctf.qc	2008-02-23 19:50:57 UTC (rev 3409)
+++ trunk/data/qcsrc/server/ctf.qc	2008-02-23 20:28:45 UTC (rev 3410)
@@ -249,11 +249,11 @@
 		s = ftos_decimals(t, 2);
 		s0 = ftos_decimals(flagcaptimerecord, 2);
 		h0 = db_get(ServerProgsDB, strcat(GetMapname(), "/captimerecord/netname"));
-		h1 = strreplace(other.netname, "\\", "\xDC"); // h1: current netname, escaped for DB (\ is 5C, other \ is DC)
+		h1 = strreplace("\\", "\xDC", other.netname); // h1: current netname, escaped for DB (\ is 5C, other \ is DC)
 		if(h0 == h1)
 			h0 = "his";
 		else
-			h0 = strcat(strreplace(h0, "\xDC", "\\"), "^7's"); // h0: display text for previous netname
+			h0 = strcat(strreplace("\xDC", "\\", other.netname), "^7's"); // h0: display text for previous netname
 		if (flagcaptimerecord == 0)
 		{
 			bprint(other.netname, "^7 captured the ", other.flagcarried.netname, " in ", s, " seconds\n");




More information about the nexuiz-commits mailing list