]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed duel scoreboard when there aren't enough players in the game
authorz411 <z411@omaera.org>
Wed, 5 May 2021 01:28:46 +0000 (21:28 -0400)
committerz411 <z411@omaera.org>
Wed, 5 May 2021 01:28:46 +0000 (21:28 -0400)
qcsrc/client/hud/panel/scoreboard.qc

index 83fa830336544b4b93654da8e8804c7c26179b27..9d8ecd0add87d6f82c15b4e00a3a0489191c1611 100644 (file)
@@ -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;