bot: allow bots to ignore more than one item on the ground per-round

This commit is contained in:
jeefo 2024-07-03 11:48:56 +03:00
commit 8c0e603e55
No known key found for this signature in database
GPG key ID: D696786B81B667C8
4 changed files with 22 additions and 10 deletions

View file

@ -1541,7 +1541,8 @@ void Bot::pickupItem_ () {
}
if (!weaponIndex || !niceWeapon) {
m_itemIgnore = m_pickupItem;
m_ignoredItems.push (m_pickupItem);
m_pickupItem = nullptr;
m_pickupType = Pickup::None;