Permalink
Browse files

- Enforce CheckCheatmode() for cheat-enforced CVARs, allowing them to…

… be changed in normal single player games
  • Loading branch information...
raa-eruanna authored and coelckers committed Dec 4, 2018
1 parent 33db579 commit 0d891b6289088b60c341880cb7419c7ade07a1d5
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/c_cvars.cpp
@@ -1760,11 +1760,8 @@ EXTERN_CVAR(Bool, sv_cheats);
void FBaseCVar::CmdSet (const char *newval)
{
if ((GetFlags() & CVAR_CHEAT) && !sv_cheats)
{
Printf("sv_cheats must be true to set this console variable.\n");
if ((GetFlags() & CVAR_CHEAT) && CheckCheatmode ())
return;
}
MarkUnsafe();

0 comments on commit 0d891b6

Please sign in to comment.