]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 8299b38594d8fe240a365b8bfcba74cf09823929..c48390bcdb0f4c2b9a0c4a6ade3a6cc01c7cec80 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);