]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/score.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / score.qc
index 49a8fa5b7a465f2e362098031df2dce86a05a178..b07b84ed33f8001c34779cea4a7bddd9d4db5813 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);
@@ -170,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);