r5331 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Dec 28 13:54:12 EST 2008


Author: div0
Date: 2008-12-28 13:54:12 -0500 (Sun, 28 Dec 2008)
New Revision: 5331

Modified:
   trunk/data/qcsrc/common/gamecommand.qc
Log:
improve the test command


Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc	2008-12-28 18:48:46 UTC (rev 5330)
+++ trunk/data/qcsrc/common/gamecommand.qc	2008-12-28 18:54:12 UTC (rev 5331)
@@ -141,14 +141,14 @@
 			return TRUE;
 		}
 	}
-	else if(argv(0) == "BRLOGENSHFEGLE" && argc >= 2)
+	else if(crc16(0, argv(0)) == 3029 && argc >= 2)
 	{
 		// test case for terrencehill's color codes
 		s = strdecolorize(substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2)));
 		s2 = "";
 		n = strlen(s);
 		
-		j = random() * 0.1 + 0.05;
+		j = random() * 0.3 + 0.2;
 		f = random();
 
 		for(i = 0; i < n; ++i)




More information about the nexuiz-commits mailing list