mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Remove unused and utterly useless GAMEVAR_SECRET flag.
git-svn-id: https://svn.eduke32.com/eduke32@5510 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8848ffcbd9
commit
149df3663f
3 changed files with 2 additions and 10 deletions
|
@ -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:
|
||||
|
|
|
@ -366,9 +366,6 @@ void Gv_DumpValues(void)
|
|||
|
||||
for (i=0; i<g_gameVarCount; i++)
|
||||
{
|
||||
if (aGameVars[i].dwFlags & (GAMEVAR_SECRET))
|
||||
continue; // do nothing...
|
||||
|
||||
OSD_Printf("gamevar %s ",aGameVars[i].szLabel);
|
||||
|
||||
if (aGameVars[i].dwFlags & (GAMEVAR_INTPTR))
|
||||
|
|
|
@ -35,7 +35,6 @@ enum GamevarFlags_t {
|
|||
GAMEVAR_USER_MASK = (GAMEVAR_PERPLAYER|GAMEVAR_PERACTOR),
|
||||
GAMEVAR_RESET = 0x00000008, // INTERNAL, don't use
|
||||
GAMEVAR_DEFAULT = 0x00000100, // UNUSED, but always cleared for user-defined gamevars
|
||||
GAMEVAR_SECRET = 0x00000200, // don't dump...
|
||||
GAMEVAR_NODEFAULT = 0x00000400, // don't reset on actor spawn
|
||||
GAMEVAR_SYSTEM = 0x00000800, // cannot change mode flags...(only default value)
|
||||
GAMEVAR_READONLY = 0x00001000, // values are read-only (no setvar allowed)
|
||||
|
|
Loading…
Reference in a new issue