]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/ent_cs.qh
Scoreboard: fix empty scoreboard in non-team games
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / ent_cs.qh
index e8d568af5e6d9bb833c84c5fbb17ebd9808ac24f..389aadc1fd9283d1301f635d9d6f0dc93fc8b42f 100644 (file)
@@ -83,12 +83,12 @@ REGISTER_NET_TEMP(CLIENT_ENTCS)
        }
 
        /**
-        * Same as `entcs_GetTeam`, but returns -1 for no team
+        * Same as `entcs_GetTeam`, but returns -1 for no team in teamplay
         */
        int entcs_GetScoreTeam(int i)
        {
                int t = entcs_GetTeam(i);
-               if (!t) t = -1;
+               if (teamplay && !t) t = -1;
                return t;
        }