From: terencehill Date: Wed, 20 Mar 2019 18:50:45 +0000 (+0100) Subject: Fix #2208 "Using custom bot teams completely breaks team games" X-Git-Tag: xonotic-v0.8.5~1573 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb18df203f02479bd53303d9d621ed9a2c079095;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2208 "Using custom bot teams completely breaks team games" --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 5d3448491..4f0b8d01d 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -429,7 +429,7 @@ void bot_clientconnect(entity this) if (Team_IsValidIndex(this.bot_forced_team)) { - this.team = Team_IndexToTeam(this.bot_forced_team); + SetPlayerTeam(this, this.bot_forced_team, TEAM_CHANGE_MANUAL); } else {