From 3019618e9a3d73cac0d938c9891a84ba0f0712d0 Mon Sep 17 00:00:00 2001 From: FortyTwoFortyTwo Date: Tue, 17 Oct 2023 15:52:49 +0100 Subject: [PATCH] Fix menu hud able to stay up after convar changed --- scripting/randomizer/huds.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripting/randomizer/huds.sp b/scripting/randomizer/huds.sp index f0ffe53..7a27a3b 100644 --- a/scripting/randomizer/huds.sp +++ b/scripting/randomizer/huds.sp @@ -546,6 +546,9 @@ public int Huds_MenuAction(Menu hMenu, MenuAction action, int iClient, int iChoi } case MenuAction_Select: { + if (g_cvHuds.IntValue != HudMode_Menu) + return 0; // Convar just changed, dont need it anymore + char sValue[16]; hMenu.GetItem(iChoice, sValue, sizeof(sValue));