r5440 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jan 7 15:24:47 EST 2009


Author: div0
Date: 2009-01-07 15:24:47 -0500 (Wed, 07 Jan 2009)
New Revision: 5440

Modified:
   trunk/data/qcsrc/common/gamecommand.qc
Log:
more rainbow power


Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc	2009-01-07 19:41:15 UTC (rev 5439)
+++ trunk/data/qcsrc/common/gamecommand.qc	2009-01-07 20:24:47 UTC (rev 5440)
@@ -188,7 +188,7 @@
 		s2 = "";
 		
 		n = strlen(s);
-		j = (6 * max(1, floor(strlen(s)/32 + random() * 2 - 1))) / n;
+		j = ((6 * max(1, floor(strlen(s)/32 + random() * 2 - 1))) / n) * (1 - 2 * (random() > 0.5));
 		f = random() * 6;
 
 		for(i = 0; i < n; ++i)




More information about the nexuiz-commits mailing list