From caf84feda8049d7d7b5dfafcbb0e0e62e64863dc Mon Sep 17 00:00:00 2001 From: Molgrum Date: Sat, 23 Feb 2008 09:52:55 +0000 Subject: [PATCH] Fix to the previous commit: Also toggle the console if it's down git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2933 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_single.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/client/m_single.c b/engine/client/m_single.c index 4780e070d..f57eecbe6 100644 --- a/engine/client/m_single.c +++ b/engine/client/m_single.c @@ -364,7 +364,6 @@ static qboolean M_DemoKey(menucustom_t *control, menu_t *menu, int key) ShowDemoMenu(menu, va("%s", info->selected->name)); else { - extern m_state_t m_state; int extnum; for (extnum = 0; extnum < info->numext; extnum++) if (!stricmp(info->selected->name + strlen(info->selected->name)-4, info->ext[extnum])) @@ -374,7 +373,7 @@ static qboolean M_DemoKey(menucustom_t *control, menu_t *menu, int key) extnum = 0; Cbuf_AddText(va("%s \"%s\"\n", info->command[extnum], info->selected->name), RESTRICT_LOCAL); - m_state = m_none; + M_ToggleMenu_f(); } }