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
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,13 @@ CMD_ChooseTeam(void)
|
||||||
void
|
void
|
||||||
CMD_BuyMenu(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 */
|
/* handle both VGUI and text menus */
|
||||||
if (ClientGame_IsUsingVGUI())
|
if (ClientGame_IsUsingVGUI())
|
||||||
VGUI_BuyMenu();
|
VGUI_BuyMenu();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue