From e17ff6cb06fcee6555889b108b2c2bfe3dae30fa Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 16 Jun 2018 14:56:18 +0300 Subject: [PATCH] Fix spectator team assignment. --- qcsrc/server/teamplay.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 3f1251310..5b9ab4db5 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -185,7 +185,11 @@ bool Player_SetTeamIndex(entity player, int index) // Mutator has blocked team change. return false; } - if (new_team != -1) + if (new_team == -1) + { + player.team = -1; + } + else { SetPlayerColors(player, new_team - 1); } -- 2.39.2