From 4b0e6dd688582e8e2cd7d6b18a77405a191e4cf0 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 18 Mar 2017 22:15:42 +0300 Subject: [PATCH] Team change bugfix. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 2c3155f16..07b86bf1d 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -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; } -- 2.39.5