r1844 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Aug 22 12:29:06 EDT 2006
Author: div0
Date: 2006-08-22 12:29:06 -0400 (Tue, 22 Aug 2006)
New Revision: 1844
Modified:
trunk/data/qcsrc/server/miscfunctions.qc
Log:
oops... fix various bugs in decolorize :P
Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc 2006-08-22 16:22:12 UTC (rev 1843)
+++ trunk/data/qcsrc/server/miscfunctions.qc 2006-08-22 16:29:06 UTC (rev 1844)
@@ -500,12 +500,12 @@
string ch1, ch2;
n = 1;
ch1 = substring(s, 0, 1);
- ch2 = substring(s, 1, 2);
+ ch2 = substring(s, 1, 1);
if(ch1 == "^")
{
n = 2;
if(ch2 == "^")
- out = strcat(out, "^");
+ out = strcat(out, "^^");
else if(ch2 == "0")
out = strcat(out);
else if(ch2 == "1")
@@ -529,7 +529,7 @@
else
{
n = 1;
- out = strcat(out, "^");
+ out = strcat(out, "^^");
}
s = substring(s, n, strlen(s) - n);
}
More information about the nexuiz-commits
mailing list