From ca7375195734f06b5afeb241c6ecb02859d73250 Mon Sep 17 00:00:00 2001 From: jeefo Date: Wed, 8 May 2024 10:08:49 +0300 Subject: [PATCH] fix: kill bots ignores specified team (resovles #566) --- src/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.cpp b/src/manager.cpp index d57babd..af7a605 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -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 ();