From: z411 Date: Wed, 5 May 2021 01:28:46 +0000 (-0400) Subject: Fixed duel scoreboard when there aren't enough players in the game X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2943cb0394dddf3a2aad4418f43d24716bc1cf5b;p=xonotic%2Fxonotic-data.pk3dir.git Fixed duel scoreboard when there aren't enough players in the game --- 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;