]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply forced team to bots only in team games
authorterencehill <piuntn@gmail.com>
Sun, 7 Apr 2019 23:46:10 +0000 (01:46 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 7 Apr 2019 23:46:10 +0000 (01:46 +0200)
qcsrc/server/bot/default/bot.qc

index 4f0b8d01d0a38238d262572ff7378288ab64892d..7061ff91ce9b16f080c86b139f195e06599368ab 100644 (file)
@@ -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);
        }