mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
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
This commit is contained in:
parent
ef92094aa5
commit
2c00f53008
1 changed files with 15 additions and 0 deletions
|
@ -5699,6 +5699,21 @@ static void C_AddDefaultDefinitions(void)
|
||||||
for (i=0; i<MAXEVENTS; i++)
|
for (i=0; i<MAXEVENTS; i++)
|
||||||
C_AddDefinition(EventNames[i].text, EventNames[i].tokenid, LABEL_DEFINE);
|
C_AddDefinition(EventNames[i].text, EventNames[i].tokenid, LABEL_DEFINE);
|
||||||
|
|
||||||
|
for (i=0; i<NUMGAMEFUNCTIONS; i++)
|
||||||
|
{
|
||||||
|
int32_t j;
|
||||||
|
|
||||||
|
if (!Bstrcmp(gamefunctions[i],"Show_Console")) continue;
|
||||||
|
|
||||||
|
Bsprintf(tempbuf,"GAMEFUNC_%s", gamefunctions[i]);
|
||||||
|
|
||||||
|
for (j=Bstrlen(tempbuf); j>=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_MAPNAME",STR_MAPNAME,LABEL_DEFINE);
|
||||||
C_AddDefinition("STR_MAPFILENAME",STR_MAPFILENAME,LABEL_DEFINE);
|
C_AddDefinition("STR_MAPFILENAME",STR_MAPFILENAME,LABEL_DEFINE);
|
||||||
C_AddDefinition("STR_PLAYERNAME",STR_PLAYERNAME,LABEL_DEFINE);
|
C_AddDefinition("STR_PLAYERNAME",STR_PLAYERNAME,LABEL_DEFINE);
|
||||||
|
|
Loading…
Reference in a new issue