From: divverent Date: Sat, 2 Aug 2008 10:02:19 +0000 (+0000) Subject: fix ESC in disconnected state. FINALLY! X-Git-Tag: xonotic-v0.1.0preview~2147 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=d98b709dae9e139f9e868da9b67bbd8e41085f37;hp=63340afe2a2fe9d185810e69462edfc0f4790db7;p=xonotic%2Fdarkplaces.git fix ESC in disconnected state. FINALLY! git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8434 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index 8a867571..3b0ea761 100644 --- a/keys.c +++ b/keys.c @@ -982,8 +982,15 @@ Key_Event (int key, char ascii, qboolean down) { case key_console: if(down) - if(key_consoleactive & KEY_CONSOLEACTIVE_USER) + { + if(key_consoleactive & KEY_CONSOLEACTIVE_FORCED) + { + key_consoleactive &= ~KEY_CONSOLEACTIVE_USER; + MR_ToggleMenu_f (); + } + else Con_ToggleConsole_f(); + } break; case key_message: