r5349 - in branches/nexuiz-2.0: . data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Dec 29 10:49:40 EST 2008


Author: div0
Date: 2008-12-29 10:49:40 -0500 (Mon, 29 Dec 2008)
New Revision: 5349

Modified:
   branches/nexuiz-2.0/.patchsets
   branches/nexuiz-2.0/data/qcsrc/common/gamecommand.qc
Log:
r5347 | div0 | 2008-12-29 16:00:15 +0100 (Mon, 29 Dec 2008) | 2 lines
use an integer count of gradients
r5348 | div0 | 2008-12-29 16:04:00 +0100 (Mon, 29 Dec 2008) | 2 lines
32 is a rounder number :P

Modified: branches/nexuiz-2.0/.patchsets
===================================================================
--- branches/nexuiz-2.0/.patchsets	2008-12-29 15:04:00 UTC (rev 5348)
+++ branches/nexuiz-2.0/.patchsets	2008-12-29 15:49:40 UTC (rev 5349)
@@ -1,2 +1,2 @@
 master = svn://svn.icculus.org/nexuiz/trunk
-revisions_applied = 1-5345
+revisions_applied = 1-5348

Modified: branches/nexuiz-2.0/data/qcsrc/common/gamecommand.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/common/gamecommand.qc	2008-12-29 15:04:00 UTC (rev 5348)
+++ branches/nexuiz-2.0/data/qcsrc/common/gamecommand.qc	2008-12-29 15:49:40 UTC (rev 5349)
@@ -146,9 +146,9 @@
 		// 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.2 + 0.1;
+		j = (6 * max(1, floor(strlen(s)/32 + random() * 2 - 1))) / n;
 		f = random() * 6;
 
 		for(i = 0; i < n; ++i)




More information about the nexuiz-commits mailing list