git-svn-id: https://svn.eduke32.com/eduke32@825 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-06-30 18:33:04 +00:00
parent 4348140d55
commit 71292bb5f1
1 changed files with 3 additions and 3 deletions

View File

@ -4289,7 +4289,7 @@ repeatcase:
gamefunctions[j][i] = *textptr;
keydefaults[j*3][i] = *textptr;
textptr++,i++;
if (*textptr == '/')
if (*textptr == '/' || *textptr == ' ')
{
initprintf("%s:%d: warning: invalid character in function name.\n",compilefile,line_number);
while (*textptr != 0x0a && *textptr != 0x0d && *textptr != 0) textptr++;
@ -4297,8 +4297,8 @@ repeatcase:
}
if (i >= MAXGAMEFUNCLEN-1)
{
initprintf("%s:%d: error: function name exceeds limit of %d characters.\n",compilefile,line_number,MAXGAMEFUNCLEN);
error++;
initprintf("%s:%d: warning: function name exceeds limit of %d characters.\n",compilefile,line_number,MAXGAMEFUNCLEN);
// error++;
while (*textptr != 0x0a && *textptr != 0x0d && *textptr != 0) textptr++;
break;
}