Add globalgameflags to Duke-Mapster32's game-side def parsing.

git-svn-id: https://svn.eduke32.com/eduke32@5374 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-10-03 11:53:16 +00:00
parent f232b2fa51
commit 9f1d12eb2c

View file

@ -125,6 +125,8 @@ static int32_t curcorruptthing=-1;
static uint32_t templenrepquot=1; static uint32_t templenrepquot=1;
static int32_t duke3d_m32_globalflags;
//////////////////// Key stuff //////////////////// //////////////////// Key stuff ////////////////////
#define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT]) #define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT])
@ -9129,6 +9131,7 @@ enum
T_INCLUDEDEFAULT, T_INCLUDEDEFAULT,
T_RENAMEFILE, T_RENAMEFILE,
T_GLOBALGAMEFLAGS,
}; };
static int32_t parsegroupfiles(scriptfile *script); static int32_t parsegroupfiles(scriptfile *script);
@ -9167,6 +9170,7 @@ static int32_t parsegroupfiles(scriptfile *script)
{ "loadgrp", T_LOADGRP }, { "loadgrp", T_LOADGRP },
{ "noautoload", T_NOAUTOLOAD }, { "noautoload", T_NOAUTOLOAD },
{ "renamefile", T_RENAMEFILE }, { "renamefile", T_RENAMEFILE },
{ "globalgameflags", T_GLOBALGAMEFLAGS },
}; };
while (1) while (1)
@ -9224,6 +9228,11 @@ static int32_t parsegroupfiles(scriptfile *script)
krename(crcval, filenum, newname); krename(crcval, filenum, newname);
} }
break; break;
case T_GLOBALGAMEFLAGS:
{
if (scriptfile_getnumber(script,&duke3d_m32_globalflags)) break;
}
break;
case T_EOF: case T_EOF:
return(0); return(0);
default: default: