From 901ec682a64beedccbd90d177d86e591fea9ea23 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 23 Dec 2015 13:51:57 +0100 Subject: [PATCH] Fix another message: "player X connecting..." wasn't shown in DM games --- qcsrc/server/teamplay.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 80b0817ca..60116bada 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -583,10 +583,8 @@ void SV_ChangeTeam(float _color) float scolor, dcolor, steam, dteam; //, dbotcount, scount, dcount; // in normal deathmatch we can just apply the color and we're done - if(!teamplay) { + if(!teamplay) SetPlayerColors(self, _color); - return; - } if(!IS_CLIENT(self)) { @@ -595,6 +593,9 @@ void SV_ChangeTeam(float _color) return; } + if(!teamplay) + return; + scolor = self.clientcolors & 0x0F; dcolor = _color & 0x0F; -- 2.39.2