From: z411 Date: Sun, 8 Nov 2020 00:54:51 +0000 (-0300) Subject: playername: Don't decolorize players not in a team X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b4f47fe3a22256f03cf0200f8707cb0777fbc976;p=xonotic%2Fxonotic-data.pk3dir.git playername: Don't decolorize players not in a team --- diff --git a/qcsrc/common/util.qc b/qcsrc/common/util.qc index ee0eb1058..6e644a15b 100644 --- a/qcsrc/common/util.qc +++ b/qcsrc/common/util.qc @@ -2010,7 +2010,7 @@ float LostMovetypeFollow(entity ent) string playername(string thename, int teamid, bool team_colorize) { TC(int, teamid); - bool do_colorize = (teamplay && team_colorize); + bool do_colorize = (teamplay && team_colorize && Team_IsValidTeam(teamid)); #ifdef SVQC if(do_colorize && !intermission_running) #else