X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=console.c;h=b604fe139a0a7e7952628c11314d6791c627fc69;hb=61f44ced2c1db2784bcdb2fe4151fc6f5342248a;hp=48dcac3ddf6405878af9dda911f8b66e08c06cfb;hpb=6d472eb4b897879d92a89416a5785a3fc78da3e7;p=xonotic%2Fdarkplaces.git diff --git a/console.c b/console.c index 48dcac3d..b604fe13 100644 --- a/console.c +++ b/console.c @@ -596,6 +596,10 @@ Con_ToggleConsole_f */ void Con_ToggleConsole_f (void) { + if (COM_CheckParm ("-noconsole")) + if (!(key_consoleactive & KEY_CONSOLEACTIVE_USER)) + return; // only allow the key bind to turn off console + // toggle the 'user wants console' bit key_consoleactive ^= KEY_CONSOLEACTIVE_USER; Con_ClearNotify();