[nexuiz-commits] r6619 - trunk/data/qcsrc/menu/item
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Apr 29 15:11:00 EDT 2009
Author: div0
Date: 2009-04-29 15:10:55 -0400 (Wed, 29 Apr 2009)
New Revision: 6619
Modified:
trunk/data/qcsrc/menu/item/inputbox.c
Log:
yet another fteqcc bug workaround
Modified: trunk/data/qcsrc/menu/item/inputbox.c
===================================================================
--- trunk/data/qcsrc/menu/item/inputbox.c 2009-04-29 15:56:12 UTC (rev 6618)
+++ trunk/data/qcsrc/menu/item/inputbox.c 2009-04-29 19:10:55 UTC (rev 6619)
@@ -76,12 +76,15 @@
void enterTextInputBox(entity me, string ch)
{
float i;
+ string s1, s2;
for(i = 0; i < strlen(ch); ++i)
if(strstrofs(me.forbiddenCharacters, substring(ch, i, 1), 0) > -1)
return;
if(strlen(ch) + strlen(me.text) > me.maxLength)
return;
- me.setText(me, strcat(substring(me.text, 0, me.cursorPos), ch, substring(me.text, me.cursorPos, strlen(me.text) - me.cursorPos)));
+ s1 = substring(me.text, 0, me.cursorPos);
+ s2 = substring(me.text, me.cursorPos, strlen(me.text) - me.cursorPos);
+ me.setText(me, strcat(s1, ch, s2)); // fteqcc sucks
me.cursorPos += strlen(ch);
}
More information about the nexuiz-commits
mailing list