]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix in Nexuiz's fallback menu to avoid ending up with a blank screen
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Mar 2006 02:36:58 +0000 (02:36 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Mar 2006 02:36:58 +0000 (02:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6111 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 8e1fe5081e56bb3f68dd535b63012cb53d2303e0..8da41f5233d7aeb2b398e289049d601444bdaded 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -692,8 +692,11 @@ void M_Main_Key (int key, char ascii)
                        switch (m_main_cursor)
                        {
                        case 0:
-                               m_state = m_none;
-                               key_dest = key_game;
+                               if (cls.state == ca_connected)
+                               {
+                                       m_state = m_none;
+                                       key_dest = key_game;
+                               }
                                Con_ToggleConsole_f ();
                                break;
                        case 1: