From 8cc10bdb3d8d35b407a7b27ff0f4cfb0ff686083 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Tue, 15 Nov 2005 21:58:47 +0000 Subject: [PATCH] patch for old showmenus --- amxmodx/meta_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index b1a947e6..e57de26f 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -716,7 +716,7 @@ void C_ClientCommand(edict_t *pEntity) if (pPlayer->keys & bit_key) { - if (gpGlobals->time > pPlayer->menuexpire) + if ((pPlayer->menu > 0) && (gpGlobals->time > pPlayer->menuexpire)) { pPlayer->menu = 0; pPlayer->keys = 0;