]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Team change bugfix.
authorLyberta <lyberta@lyberta.net>
Sat, 18 Mar 2017 19:15:42 +0000 (22:15 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 18 Mar 2017 19:15:42 +0000 (22:15 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 2c3155f16f87037636744eea55068c38d7afecb6..07b86bf1df2de85969d3a54e5f24f888c840c113 100644 (file)
@@ -1152,6 +1152,10 @@ MUTATOR_HOOKFUNCTION(surv, ClientConnect)
        entity player = M_ARGV(0, entity);
        LOG_TRACE("SURVIVAL: ClientConnect, player = ", player.netname);
        player.surv_savedplayermodel = player.playermodel;
+       if (player.surv_role == SURVIVAL_ROLE_NONE)
+       {
+               Surv_AddPlayerToTeam(player, player.team);
+       }
        return true;
 }