Use a simpler check here
authorterencehill <piuntn@gmail.com>
Sun, 20 Jan 2019 17:55:32 +0000 (18:55 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 20 Jan 2019 17:55:32 +0000 (18:55 +0100)
qcsrc/client/hud/panel/scoreboard.qc

index 8299b38..c48390b 100644 (file)
@@ -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);