Close the menu when a demo is selected.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2932 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2008-02-22 22:57:28 +00:00
parent a066b43bf9
commit f312748879

View file

@ -364,6 +364,7 @@ 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]))
@ -373,6 +374,8 @@ 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;
}
}
return true;