From: Lyberta Date: Sat, 16 Jun 2018 11:56:18 +0000 (+0300) Subject: Fix spectator team assignment. X-Git-Tag: xonotic-v0.8.5~1953^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e17ff6cb06fcee6555889b108b2c2bfe3dae30fa;p=xonotic%2Fxonotic-data.pk3dir.git Fix spectator team assignment. --- 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); }