mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- added a third state for cl_blockcheats. ==2 now blocks them silently.
This commit is contained in:
parent
3e3097fe71
commit
c6c8f514fb
1 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ extern bool exiting; // for MinGW
|
|||
|
||||
CVAR (Bool, sv_cheats, false, CVAR_SERVERINFO | CVAR_LATCH)
|
||||
CVAR (Bool, sv_unlimited_pickup, false, CVAR_SERVERINFO)
|
||||
CVAR (Bool, cl_blockcheats, false, 0)
|
||||
CVAR (Int, cl_blockcheats, 0, 0)
|
||||
|
||||
CCMD (toggleconsole)
|
||||
{
|
||||
|
@ -97,9 +97,9 @@ bool CheckCheatmode (bool printmsg)
|
|||
if (printmsg) Printf ("sv_cheats must be true to enable this command.\n");
|
||||
return true;
|
||||
}
|
||||
else if (cl_blockcheats)
|
||||
else if (cl_blockcheats != 0)
|
||||
{
|
||||
if (printmsg) Printf ("cl_blockcheats is turned on and disabled this command.\n");
|
||||
if (printmsg && cl_blockcheats == 1) Printf ("cl_blockcheats is turned on and disabled this command.\n");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue