From 71292bb5f131753b38bf64e53dc02ec1ffa36d6f Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 30 Jun 2008 18:33:04 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@825 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index cf154b549..f3825fa49 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -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; }