From 149df3663f00ee1e6bde3c232d06353ddd1804b4 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 7 Jan 2016 03:29:56 +0000 Subject: [PATCH] Remove unused and utterly useless GAMEVAR_SECRET flag. git-svn-id: https://svn.eduke32.com/eduke32@5510 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 8 ++------ polymer/eduke32/source/gamevars.c | 3 --- polymer/eduke32/source/gamevars.h | 1 - 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 4baddbdb4..dfa549cec 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -3058,12 +3058,8 @@ DO_DEFSTATE: C_ReportError(WARNING_BADGAMEVAR); } - Gv_NewVar(label+(g_numLabels<<6),*(g_scriptPtr-2), - (*(g_scriptPtr-1)) - // can't define default or secret - & (~(GAMEVAR_DEFAULT | GAMEVAR_SECRET)) - ); - g_scriptPtr -= 3; // no need to save in script... + Gv_NewVar(label+(g_numLabels<<6), *(g_scriptPtr-2), (*(g_scriptPtr-1)) & (~GAMEVAR_DEFAULT)); + g_scriptPtr -= 3; continue; case CON_GAMEARRAY: diff --git a/polymer/eduke32/source/gamevars.c b/polymer/eduke32/source/gamevars.c index 66fdbde33..6220ab8b5 100644 --- a/polymer/eduke32/source/gamevars.c +++ b/polymer/eduke32/source/gamevars.c @@ -366,9 +366,6 @@ void Gv_DumpValues(void) for (i=0; i