]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: JoinBestTeam bugfix.
authorLyberta <lyberta@lyberta.net>
Sun, 2 Apr 2017 15:36:51 +0000 (18:36 +0300)
committerLyberta <lyberta@lyberta.net>
Sun, 2 Apr 2017 15:36:51 +0000 (18:36 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 5b138c588bb1eb32b34b35ebe99c5c0b7e847e24..e5a5250c9121ebd6af38a5b48d075408090d34c5 100644 (file)
@@ -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))
        {