fixed amb18 and various associated menu re-entrancy bugs

This commit is contained in:
David Anderson
2007-04-16 18:00:54 +00:00
parent b90bc3a3e4
commit 1ec4d9cc7d
5 changed files with 93 additions and 10 deletions

View File

@ -948,7 +948,7 @@ void C_ClientCommand(edict_t *pEntity)
g_menucmds.SetWatchIter(a);
if ((*a).matchCommand(menuid, bit_key) && (*a).getPlugin()->isExecutable((*a).getFunction()))
{
if (pPlayer->newmenu != -1)
if (pPlayer->newmenu != -1 && pPlayer->newmenu == (*a).newmenu)
{
int menu = pPlayer->newmenu;
pPlayer->newmenu = -1;