Skip to content

Commit

Permalink
Fix menu hud able to stay up after convar changed
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Oct 17, 2023
1 parent 7ba08cc commit 3019618
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripting/randomizer/huds.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 3019618

Please sign in to comment.