r3157 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jan 17 01:07:48 EST 2008
Author: div0
Date: 2008-01-17 01:07:26 -0500 (Thu, 17 Jan 2008)
New Revision: 3157
Modified:
trunk/data/qcsrc/common/util.qc
Log:
fix minor word wrap bug for campaign info display
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2008-01-17 00:46:26 UTC (rev 3156)
+++ trunk/data/qcsrc/common/util.qc 2008-01-17 06:07:26 UTC (rev 3157)
@@ -48,6 +48,11 @@
lleft = l;
i++;
}
+ else if (substring(s, i, 1) == "\n")
+ {
+ callback("\n");
+ lleft = l;
+ }
else if (substring(s, i, 1) == " ")
{
if (lleft > 0)
@@ -72,6 +77,8 @@
break;
if (c == "\\")
break;
+ if (c == "\n")
+ break;
// we need to keep this tempstring alive even if substring is
// called repeatedly, so call strcat even though we're not
// doing anything
More information about the nexuiz-commits
mailing list