Skip to content

Commit

Permalink
- added a third state for cl_blockcheats. ==2 now blocks them silently.
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jun 7, 2019
1 parent fc701c8 commit 405ac16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/c_cmds.cpp
Expand Up @@ -74,7 +74,7 @@ extern bool insave;

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)
{
Expand All @@ -88,9 +88,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
Expand Down

0 comments on commit 405ac16

Please sign in to comment.