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
This commit is contained in:
Molgrum 2008-02-23 09:52:55 +00:00
parent f312748879
commit caf84feda8
1 changed files with 1 additions and 2 deletions

View File

@ -364,7 +364,6 @@ static qboolean M_DemoKey(menucustom_t *control, menu_t *menu, int key)
ShowDemoMenu(menu, va("%s", info->selected->name)); ShowDemoMenu(menu, va("%s", info->selected->name));
else else
{ {
extern m_state_t m_state;
int extnum; int extnum;
for (extnum = 0; extnum < info->numext; extnum++) for (extnum = 0; extnum < info->numext; extnum++)
if (!stricmp(info->selected->name + strlen(info->selected->name)-4, info->ext[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; extnum = 0;
Cbuf_AddText(va("%s \"%s\"\n", info->command[extnum], info->selected->name), RESTRICT_LOCAL); Cbuf_AddText(va("%s \"%s\"\n", info->command[extnum], info->selected->name), RESTRICT_LOCAL);
m_state = m_none; M_ToggleMenu_f();
} }
} }