r5382 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 2 10:10:10 EST 2009


Author: div0
Date: 2009-01-02 10:10:10 -0500 (Fri, 02 Jan 2009)
New Revision: 5382

Modified:
   trunk/data/qcsrc/common/gamecommand.qc
Log:
fix teh radio brlogen


Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc	2009-01-02 14:58:11 UTC (rev 5381)
+++ trunk/data/qcsrc/common/gamecommand.qc	2009-01-02 15:10:10 UTC (rev 5382)
@@ -154,8 +154,16 @@
 		for(i = 0; i < n; ++i)
 		{
 			c = substring(s, i, 1);
+
 			if(c == ";")
 				c = ":";
+			else if(c == "^")
+			{
+				c = "^^";
+				if(substring(s, i+1, 1) == "^")
+					++i;
+			}
+
 			if(c != " ")
 			{
 				rgb = hsl_to_rgb('1 0 0' * (j * i + f) + '0 1 .5');




More information about the nexuiz-commits mailing list