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)
|
void FBaseCVar::CmdSet (const char *newval)
|
||||||
{
|
{
|
||||||
if ((GetFlags() & CVAR_CHEAT) && !sv_cheats)
|
if ((GetFlags() & CVAR_CHEAT) && CheckCheatmode ())
|
||||||
{
|
|
||||||
Printf("sv_cheats must be true to set this console variable.\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
MarkUnsafe();
|
MarkUnsafe();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue