From: Lyberta Date: Sun, 2 Apr 2017 15:36:51 +0000 (+0300) Subject: Survival: JoinBestTeam bugfix. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a073af219c86e54149bc2b02b506cdf99a261ea;p=xonotic%2Fxonotic-data.pk3dir.git Survival: JoinBestTeam bugfix. --- diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 5b138c588..e5a5250c9 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -1439,6 +1439,10 @@ MUTATOR_HOOKFUNCTION(surv, CheckAllowedTeams, CBC_ORDER_EXCLUSIVE) /// \brief Hook that determines the best team for the player to join. MUTATOR_HOOKFUNCTION(surv, JoinBestTeam, CBC_ORDER_EXCLUSIVE) { + if (surv_type == SURVIVAL_TYPE_COOP) + { + return; + } entity player = M_ARGV(0, entity); if (IS_BOT_CLIENT(player)) {