From: terencehill Date: Sun, 7 Apr 2019 23:46:10 +0000 (+0200) Subject: Apply forced team to bots only in team games X-Git-Tag: xonotic-v0.8.5~1559 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=997a376759d335cf5c8265e13d25069b50ff7448;p=xonotic%2Fxonotic-data.pk3dir.git Apply forced team to bots only in team games --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 4f0b8d01d..7061ff91c 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -427,7 +427,7 @@ void bot_clientconnect(entity this) bot_setclientfields(this); } - if (Team_IsValidIndex(this.bot_forced_team)) + if (teamplay && Team_IsValidIndex(this.bot_forced_team)) { SetPlayerTeam(this, this.bot_forced_team, TEAM_CHANGE_MANUAL); }