r5347 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Dec 29 10:00:15 EST 2008
Author: div0
Date: 2008-12-29 10:00:15 -0500 (Mon, 29 Dec 2008)
New Revision: 5347
Modified:
trunk/data/qcsrc/common/gamecommand.qc
Log:
use an integer count of gradients
Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc 2008-12-29 13:25:45 UTC (rev 5346)
+++ trunk/data/qcsrc/common/gamecommand.qc 2008-12-29 15:00:15 UTC (rev 5347)
@@ -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)/24 + random() * 2 - 1))) / n;
f = random() * 6;
for(i = 0; i < n; ++i)
More information about the nexuiz-commits
mailing list