Fixed inablity to delete paths between nodes.

Some fixes to facing node index search.
This commit is contained in:
jeefo 2019-08-29 23:31:54 +03:00
commit 2f4b329ad1
4 changed files with 105 additions and 40 deletions

View file

@ -1496,7 +1496,7 @@ void Bot::buyStuff () {
break;
case BuyState::SecondaryWeapon: // if bot has still some money, buy a better secondary weapon
if (isPistolMode || (isFirstRound && hasDefaultPistols) || (hasDefaultPistols && bots.getLastWinner () != m_team) || (hasPrimaryWeapon () && hasDefaultPistols && m_moneyAmount > rg.int_ (7500, 9000))) {
if (isPistolMode || (isFirstRound && hasDefaultPistols) || (hasDefaultPistols && bots.getLastWinner () != m_team) || (hasPrimaryWeapon () && hasDefaultPistols) && m_moneyAmount > rg.int_ (7500, 9000)) {
do {
pref--;