]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
playername: Don't decolorize players not in a team
authorz411 <z411@omaera.org>
Sun, 8 Nov 2020 00:54:51 +0000 (21:54 -0300)
committerz411 <z411@omaera.org>
Sun, 8 Nov 2020 00:54:51 +0000 (21:54 -0300)
qcsrc/common/util.qc

index ee0eb1058575e45e14db2221683793684ef15b30..6e644a15b79c84afd3f90fd9bf05fad47814e636 100644 (file)
@@ -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