fix: do not prevent buying on fy_* maps, (fix #325)

If you need to prevent bots buying on specific map use map-cfg with yb_botbuy 0.
This commit is contained in:
dmitry 2022-04-03 14:43:29 +03:00
commit 06774a4282
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
4 changed files with 4 additions and 4 deletions

View file

@ -1785,7 +1785,7 @@ void BotManager::selectLeaders (int team, bool reset) {
m_leaderChoosen[Team::CT] = true;
}
}
else if (game.mapIs (MapFlags::Escape | MapFlags::KnifeArena | MapFlags::Fun)) {
else if (game.mapIs (MapFlags::Escape | MapFlags::KnifeArena | MapFlags::FightYard)) {
auto bot = bots.findHighestFragBot (team);
if (!m_leaderChoosen[team] && bot) {