mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- Enforce CheckCheatmode() for cheat-enforced CVARs, allowing them to be changed in normal single player games
This commit is contained in:
parent
33db5792b4
commit
0d891b6289
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue