From 9f1d12eb2c4044d0412ca8fc61579abbffced0d6 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 3 Oct 2015 11:53:16 +0000 Subject: [PATCH] Add globalgameflags to Duke-Mapster32's game-side def parsing. git-svn-id: https://svn.eduke32.com/eduke32@5374 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 3ca547b5b..7b8852ddf 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -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: