From 56147ef4426939cedaf5702bb0cb123f8c674feb Mon Sep 17 00:00:00 2001 From: Alexander Kromm Date: Sun, 5 Jan 2020 23:27:50 +0700 Subject: [PATCH] add "nosave" cvar token It makes a cvar value not be saved in a save file. --- src/d_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d_main.cpp b/src/d_main.cpp index 91fde3cfa0e..3f01aa618de 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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);