From: TimePath Date: Fri, 11 Dec 2015 23:14:54 +0000 (+1100) Subject: Scoreboard: fix empty scoreboard in non-team games X-Git-Tag: xonotic-v0.8.2~1506 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8aa1409c31da37c43d111b20f137ea69afb2d9b;p=xonotic%2Fxonotic-data.pk3dir.git Scoreboard: fix empty scoreboard in non-team games --- diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index e8d568af5..389aadc1f 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -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; }