]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/score.qc
Improve spect HUD CVAR names
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / score.qc
index 3046335ca6ced612cc99a364384444121c650e79..dca00c4cb015aa4e8e6245dbc7bcf02a776779ed 100644 (file)
@@ -214,10 +214,8 @@ void HUD_Score()
        if (!scoreboard_fade_alpha) // the scoreboard too calls Scoreboard_UpdatePlayerTeams
                Scoreboard_UpdatePlayerTeams();
        
-       if(spectatee_status) {
-               if(teamplay && autocvar_hud_spectatorteamdisplay) return;
-               if(gametype == MAPINFO_TYPE_DUEL && autocvar_hud_spectatordueldisplay) return;
-       }
+       // z411 : Don't display if we have the spectator HUD scores enabled
+       if(spectatee_status && autocvar_hud_panel_spect_scores) return;
 
        HUD_Panel_LoadCvars();
        vector pos, mySize;