Merge branch 'master' into chatter-fixes-and-improvements

This commit is contained in:
Владислав Сухов 2024-05-09 12:58:54 +00:00
commit 862b409e92

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 ();