From 88120b45eb902e410eafe8df0145f0146257b382 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 30 Jun 2008 09:25:06 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@823 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/config.c | 5 +++-- polymer/eduke32/source/gamedef.c | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/config.c b/polymer/eduke32/source/config.c index b8c696ca3..49696aa20 100644 --- a/polymer/eduke32/source/config.c +++ b/polymer/eduke32/source/config.c @@ -832,8 +832,9 @@ void CONFIG_WriteBinds(void) // save binds and aliases to disk { symbol_t *symb; fprintf(fp,"// this file automatically generated by EDuke32\n// do not modify if you lack common sense\n"); - for (i=0;inext) if (symb->func == (void *)OSD_ALIAS) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 09ef4900e..cf154b549 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -4289,6 +4289,12 @@ repeatcase: gamefunctions[j][i] = *textptr; keydefaults[j*3][i] = *textptr; textptr++,i++; + if (*textptr == '/') + { + initprintf("%s:%d: warning: invalid character in function name.\n",compilefile,line_number); + while (*textptr != 0x0a && *textptr != 0x0d && *textptr != 0) textptr++; + break; + } if (i >= MAXGAMEFUNCLEN-1) { initprintf("%s:%d: error: function name exceeds limit of %d characters.\n",compilefile,line_number,MAXGAMEFUNCLEN);