Skip to content

Commit

Permalink
add "nosave" cvar token
Browse files Browse the repository at this point in the history
It makes a cvar value not be saved in a save file.
  • Loading branch information
mmaulwurff authored and coelckers committed Jan 5, 2020
1 parent a7534bb commit 56147ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/d_main.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 56147ef

Please sign in to comment.