diff options
Diffstat (limited to 'src/client/cl_ui.c')
-rw-r--r-- | src/client/cl_ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/cl_ui.c b/src/client/cl_ui.c index 5ad8e916..f122067f 100644 --- a/src/client/cl_ui.c +++ b/src/client/cl_ui.c @@ -860,8 +860,8 @@ intptr_t CL_UISystemCalls( intptr_t *args ) { return Key_GetCatcher(); case UI_KEY_SETCATCHER: - // Don't allow the ui module to close the console - Key_SetCatcher( args[1] | ( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) ); + // don't allow the ui module to toggle the console + Key_SetCatcher( ( args[1] & ~KEYCATCH_CONSOLE ) | ( Key_GetCatcher() & KEYCATCH_CONSOLE ) ); return 0; case UI_GETCLIPBOARDDATA: |