]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/score.qc
Merge branch 'master' into TimePath/scoreboard_elo
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / score.qc
index 094182fa13fd0f5f3dceed3912768338527af828..c2fc694d64b2f99b740f6ad4e4258bcb57c0c656 100644 (file)
@@ -10,7 +10,7 @@ void HUD_UpdatePlayerTeams();
 void HUD_Score_Rankings(vector pos, vector mySize, entity me)
 {
        float score;
-       entity tm = world, pl;
+       entity tm = NULL, pl;
        int SCOREPANEL_MAX_ENTRIES = 6;
        float SCOREPANEL_ASPECTRATIO = 2;
        int entries = bound(1, floor(SCOREPANEL_MAX_ENTRIES * mySize.y/mySize.x * SCOREPANEL_ASPECTRATIO), SCOREPANEL_MAX_ENTRIES);
@@ -144,6 +144,10 @@ void HUD_Score()
        pos = panel_pos;
        mySize = panel_size;
 
+       if (autocvar_hud_panel_score_dynamichud)
+               HUD_Scale_Enable();
+       else
+               HUD_Scale_Disable();
        HUD_Panel_DrawBg(1);
        if(panel_bg_padding)
        {
@@ -166,7 +170,7 @@ void HUD_Score()
                        pl = pl.sort_next;
                if(scores_flags(ps_primary) & SFL_ZERO_IS_WORST)
                        if(pl.scores(ps_primary) == 0)
-                               pl = world;
+                               pl = NULL;
 
                score = me.(scores(ps_primary));
                timer = TIME_ENCODED_TOSTRING(score);