zomg fix for oldmenus^2

This commit is contained in:
Borja Ferrer
2005-11-17 23:04:43 +00:00
parent 94308b208a
commit 778c2080b0
5 changed files with 12 additions and 4 deletions

View File

@ -716,7 +716,7 @@ void C_ClientCommand(edict_t *pEntity)
if (pPlayer->keys & bit_key)
{
if ((pPlayer->menu > 0) && (gpGlobals->time > pPlayer->menuexpire))
if ((pPlayer->menu > 0 && !pPlayer->vgui) && (gpGlobals->time > pPlayer->menuexpire))
{
pPlayer->menu = 0;
pPlayer->keys = 0;