From 2943cb0394dddf3a2aad4418f43d24716bc1cf5b Mon Sep 17 00:00:00 2001 From: z411 Date: Tue, 4 May 2021 21:28:46 -0400 Subject: [PATCH] Fixed duel scoreboard when there aren't enough players in the game --- qcsrc/client/hud/panel/scoreboard.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 83fa83033..9d8ecd0ad 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -1261,7 +1261,8 @@ void Scoreboard_Duel_DrawTable(vector pos, bool invert, entity pl, entity tm) HUD_Panel_DrawBg(); // Stop here if there are no scores available - if(pl.team != tm.team) return; + if(!pl) return; + if(entcs_GetSpecState(pl.sv_entnum) == ENTCS_SPEC_PURE) return; tmp = pos; tmp.x += panel_bg_padding; -- 2.39.2