Client: Only allow buymenu to open when we're in a buyzone (accurate to 1.5)
This commit is contained in:
parent
9dafd11530
commit
400c7b79db
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue