fixes bad buying for heavy weapons & shotguns

replaced some magic numbers in code to be readable
This commit is contained in:
jeefo 2016-02-29 22:49:19 +03:00
commit 9ae9ecb76a
4 changed files with 61 additions and 33 deletions

View file

@ -232,7 +232,7 @@ void NetworkMsg::Execute (void *p)
m_bot->m_inBuyZone = (enabled != 0);
// try to equip in buyzone
m_bot->EquipInBuyzone (0);
m_bot->EquipInBuyzone (BUYSTATE_PRIMARY_WEAPON);
}
else if (strcmp (PTR_TO_STR (p), "vipsafety") == 0)
m_bot->m_inVIPZone = (enabled != 0);