Client: Only allow buymenu to open when we're in a buyzone (accurate to 1.5)

This commit is contained in:
Marco Cawthorne 2023-04-19 10:01:16 -07:00
parent 9dafd11530
commit 400c7b79db
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ CMD_ChooseTeam(void)
void
CMD_BuyMenu(void)
{
player pl = (player)pSeat->m_ePlayer;
/* only in buy zones... */
if (!(pl.gflags & GF_BUYZONE)) {
return;
}
/* handle both VGUI and text menus */
if (ClientGame_IsUsingVGUI())
VGUI_BuyMenu();