Make CLIPMASK0 and CLIPMASK1 regular defined tokens instead of read-only gamevars

I don't remember if there was any particular reason they were added as gamevars in the first place.

git-svn-id: https://svn.eduke32.com/eduke32@7664 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:55:27 +00:00 committed by Christoph Oelckers
parent bf6730d8a3
commit 22759d8a5e
2 changed files with 3 additions and 2 deletions

View file

@ -5947,6 +5947,9 @@ static void C_AddDefaultDefinitions(void)
static tokenmap_t predefined[] =
{
{ "CLIPMASK0", CLIPMASK0 },
{ "CLIPMASK1", CLIPMASK1 },
{ "GAMEARRAY_BOOLEAN", GAMEARRAY_BITMAP },
{ "GAMEARRAY_INT16", GAMEARRAY_INT16 },
{ "GAMEARRAY_INT8", GAMEARRAY_INT8 },

View file

@ -1263,8 +1263,6 @@ static void Gv_AddSystemVars(void)
#else
Gv_NewVar("ANGRANGE", 18, GAMEVAR_SYSTEM | GAMEVAR_PERPLAYER);
Gv_NewVar("AUTOAIMANGLE", 0, GAMEVAR_SYSTEM | GAMEVAR_PERPLAYER);
Gv_NewVar("CLIPMASK0", CLIPMASK0, GAMEVAR_SYSTEM | GAMEVAR_READONLY);
Gv_NewVar("CLIPMASK1", CLIPMASK1, GAMEVAR_SYSTEM | GAMEVAR_READONLY);
Gv_NewVar("COOP", (intptr_t)&ud.coop, GAMEVAR_SYSTEM | GAMEVAR_INT32PTR);
Gv_NewVar("FFIRE", (intptr_t)&ud.ffire, GAMEVAR_SYSTEM | GAMEVAR_INT32PTR);
Gv_NewVar("GRENADE_LIFETIME", NAM_GRENADE_LIFETIME, GAMEVAR_SYSTEM | GAMEVAR_PERPLAYER);