r2937 - trunk/data/qcsrc/menu-div0test
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Nov 10 10:32:08 EST 2007
Author: div0
Date: 2007-11-10 10:32:06 -0500 (Sat, 10 Nov 2007)
New Revision: 2937
Modified:
trunk/data/qcsrc/menu-div0test/draw.qc
Log:
a + is a + is a + and not a -
Modified: trunk/data/qcsrc/menu-div0test/draw.qc
===================================================================
--- trunk/data/qcsrc/menu-div0test/draw.qc 2007-11-10 15:26:42 UTC (rev 2936)
+++ trunk/data/qcsrc/menu-div0test/draw.qc 2007-11-10 15:32:06 UTC (rev 2937)
@@ -250,7 +250,7 @@
if(draw_TextWidth(theText, ICanHasKallerz) <= maxWidth)
return theText;
else
- return strcat(substring(theText, 0, draw_TextLengthUpToWidth(theText, maxWidth + draw_TextWidth("...", ICanHasKallerz), ICanHasKallerz)), "...");
+ return strcat(substring(theText, 0, draw_TextLengthUpToWidth(theText, maxWidth - draw_TextWidth("...", ICanHasKallerz), ICanHasKallerz)), "...");
}
float draw_TextLengthUpToWidth(string theText, float maxWidth, float ICanHasKallerz)
More information about the nexuiz-commits
mailing list