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

@ -1190,7 +1190,7 @@ void Bot::NewRound (void)
m_sayTextBuffer.entityIndex = -1;
m_sayTextBuffer.sayText[0] = 0x0;
m_buyState = 0;
m_buyState = BUYSTATE_PRIMARY_WEAPON;
m_lastEquipTime = 0.0f;
if (!m_notKilled) // if bot died, clear all weapon stuff and force buying again