]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
DP_PHYSICS_ODE: new SOLID_PHYSICS_CYLINDER. New "massofs" vector field (shifts center...
[xonotic/darkplaces.git] / console.c
index 48dcac3ddf6405878af9dda911f8b66e08c06cfb..b604fe139a0a7e7952628c11314d6791c627fc69 100644 (file)
--- 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();