From 5c0334e3ce7500fec1ad270098ebaeab3823fb15 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Tue, 4 Jun 2019 02:54:18 -0400 Subject: [PATCH] - added a third state for cl_blockcheats. ==2 now blocks them silently. --- src/c_cmds.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 3f927a54f..a4e3ab5f8 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -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) { @@ -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