From: terencehill Date: Sun, 20 Jan 2019 17:55:32 +0000 (+0100) Subject: Use a simpler check here X-Git-Tag: xonotic-v0.8.5~1653 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f43ca1bbd52918a437936caf013329010923594c;p=xonotic%2Fxonotic-data.pk3dir.git Use a simpler check here --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 8299b3859..c48390bcd 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -824,7 +824,7 @@ void Scoreboard_DrawItem(vector item_pos, vector rgb, entity pl, bool is_self, i { TC(bool, is_self); TC(int, pl_number); string str; - bool is_spec = (entcs_GetTeam(pl.sv_entnum) == NUM_SPECTATOR); + bool is_spec = entcs_IsSpectating(pl.sv_entnum); vector h_pos = item_pos; vector h_size = vec2(panel_size.x, hud_fontsize.y * 1.25);