From b8aa1409c31da37c43d111b20f137ea69afb2d9b Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 12 Dec 2015 10:14:54 +1100 Subject: [PATCH] Scoreboard: fix empty scoreboard in non-team games --- qcsrc/common/ent_cs.qh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2