]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qc
Merge branch 'master' into z411/bai-server
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qc
index 08bd71298b6e70e2fa2f638d8ad8270fe1c6f5f4..5fc24e659952c5e82361f0f4d93ab24459bb8565 100644 (file)
@@ -2027,7 +2027,7 @@ int 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