fix: kill bots ignores specified team (resovles #566)

This commit is contained in:
jeefo 2024-05-08 10:08:49 +03:00
commit ca73751957
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -690,7 +690,7 @@ void BotManager::killAllBots (int team, bool silent) {
// this function kills all bots on server (only this dll controlled bots)
for (const auto &bot : m_bots) {
if (team != -1 && game.getRealTeam (bot->ent ())) {
if (team != -1 && game.getRealTeam (bot->ent ()) != team) {
continue;
}
bot->kill ();