]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2208 "Using custom bot teams completely breaks team games"
authorterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 18:50:45 +0000 (19:50 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 20 Mar 2019 18:50:45 +0000 (19:50 +0100)
qcsrc/server/bot/default/bot.qc

index 5d34484912b868ad775a83d140b439570522021a..4f0b8d01d0a38238d262572ff7378288ab64892d 100644 (file)
@@ -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
        {