]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Scoreboard: fix empty scoreboard in non-team games
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 11 Dec 2015 23:14:54 +0000 (10:14 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 11 Dec 2015 23:14:54 +0000 (10:14 +1100)
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);
         */
        int entcs_GetScoreTeam(int i)
        {
                int t = entcs_GetTeam(i);
-               if (!t) t = -1;
+               if (teamplay && !t) t = -1;
                return t;
        }
 
                return t;
        }