r2933 - in trunk/data/qcsrc/menu-div0test: . item

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Nov 10 09:41:38 EST 2007


Author: div0
Date: 2007-11-10 09:41:38 -0500 (Sat, 10 Nov 2007)
New Revision: 2933

Modified:
   trunk/data/qcsrc/menu-div0test/draw.qc
   trunk/data/qcsrc/menu-div0test/item/inputbox.c
Log:
Big Oops.


Modified: trunk/data/qcsrc/menu-div0test/draw.qc
===================================================================
--- trunk/data/qcsrc/menu-div0test/draw.qc	2007-11-10 14:30:13 UTC (rev 2932)
+++ trunk/data/qcsrc/menu-div0test/draw.qc	2007-11-10 14:41:38 UTC (rev 2933)
@@ -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)

Modified: trunk/data/qcsrc/menu-div0test/item/inputbox.c
===================================================================
--- trunk/data/qcsrc/menu-div0test/item/inputbox.c	2007-11-10 14:30:13 UTC (rev 2932)
+++ trunk/data/qcsrc/menu-div0test/item/inputbox.c	2007-11-10 14:41:38 UTC (rev 2933)
@@ -133,7 +133,7 @@
 	draw_SetClipRect(eX * me.keepspaceLeft, eX * (1 - me.keepspaceLeft - me.keepspaceRight) + eY);
 	if(me.editColorCodes)
 	{
-		string out, ch, ch2;
+		string ch, ch2;
 		float i;
 		vector theColor;
 		float theAlpha;




More information about the nexuiz-commits mailing list