fix: kill bots ignores specified team (resovles #566)
This commit is contained in:
parent
68a906e32d
commit
ca73751957
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue