mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51: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
a235d23c94
commit
a4e09f1947
1 changed files with 1 additions and 4 deletions
|
@ -1767,11 +1767,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