mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 15:40:39 +00:00
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:
parent
f232b2fa51
commit
9f1d12eb2c
1 changed files with 9 additions and 0 deletions
|
@ -125,6 +125,8 @@ static int32_t curcorruptthing=-1;
|
|||
|
||||
static uint32_t templenrepquot=1;
|
||||
|
||||
static int32_t duke3d_m32_globalflags;
|
||||
|
||||
//////////////////// Key stuff ////////////////////
|
||||
|
||||
#define eitherALT (keystatus[KEYSC_LALT] || keystatus[KEYSC_RALT])
|
||||
|
@ -9129,6 +9131,7 @@ enum
|
|||
T_INCLUDEDEFAULT,
|
||||
|
||||
T_RENAMEFILE,
|
||||
T_GLOBALGAMEFLAGS,
|
||||
};
|
||||
|
||||
static int32_t parsegroupfiles(scriptfile *script);
|
||||
|
@ -9167,6 +9170,7 @@ static int32_t parsegroupfiles(scriptfile *script)
|
|||
{ "loadgrp", T_LOADGRP },
|
||||
{ "noautoload", T_NOAUTOLOAD },
|
||||
{ "renamefile", T_RENAMEFILE },
|
||||
{ "globalgameflags", T_GLOBALGAMEFLAGS },
|
||||
};
|
||||
|
||||
while (1)
|
||||
|
@ -9224,6 +9228,11 @@ static int32_t parsegroupfiles(scriptfile *script)
|
|||
krename(crcval, filenum, newname);
|
||||
}
|
||||
break;
|
||||
case T_GLOBALGAMEFLAGS:
|
||||
{
|
||||
if (scriptfile_getnumber(script,&duke3d_m32_globalflags)) break;
|
||||
}
|
||||
break;
|
||||
case T_EOF:
|
||||
return(0);
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue