- added latching CVARs to CVARINFO

This commit is contained in:
Rachael Alexanderson 2017-11-11 09:37:41 -05:00
parent 5716dfe050
commit cdf0733c8b

View file

@ -1439,6 +1439,10 @@ void ParseCVarInfo()
{ {
cvarflags |= CVAR_CHEAT; cvarflags |= CVAR_CHEAT;
} }
else if (stricmp(sc.String, "latch") == 0)
{
cvarflags |= CVAR_LATCH;
}
else else
{ {
sc.ScriptError("Unknown cvar attribute '%s'", sc.String); sc.ScriptError("Unknown cvar attribute '%s'", sc.String);