add "nosave" cvar token

It makes a cvar value not be saved in a save file.
This commit is contained in:
Alexander Kromm 2020-01-05 23:27:50 +07:00 committed by Christoph Oelckers
parent 4dc6ea4091
commit b209fd9572

View file

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