]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix ESC in disconnected state. FINALLY!
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Aug 2008 10:02:19 +0000 (10:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Aug 2008 10:02:19 +0000 (10:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8434 d7cf8633-e32d-0410-b094-e92efae38249

keys.c

diff --git a/keys.c b/keys.c
index 8a86757155ba9125eec188d10a3893abb20348ea..3b0ea76191f980a96c9e5abfba0f59aa143e4d1d 100644 (file)
--- 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: