From 2c00f53008ccc0af37a9924ac74145c9f75d55e9 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 16 Oct 2012 17:05:14 +0000 Subject: [PATCH] Add some CON defines for friendly names to pass to definegamefuncname. Now, instead of "definegamefuncname 36 something" you would "definegamefuncname GAMEFUNC_TURNAROUND something". It's just a little something to make CON files more readable. git-svn-id: https://svn.eduke32.com/eduke32@3089 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index c2bef6bf0..5ea7432b4 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -5699,6 +5699,21 @@ static void C_AddDefaultDefinitions(void) for (i=0; i=0; j--) + tempbuf[j] = Btoupper(tempbuf[j]); + + C_AddDefinition(tempbuf, i, LABEL_DEFINE); + initprintf("added def %s %d\n", tempbuf, i); + } + C_AddDefinition("STR_MAPNAME",STR_MAPNAME,LABEL_DEFINE); C_AddDefinition("STR_MAPFILENAME",STR_MAPFILENAME,LABEL_DEFINE); C_AddDefinition("STR_PLAYERNAME",STR_PLAYERNAME,LABEL_DEFINE);