]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
autocvar for hud_panel_score_rankings
authorterencehill <piuntn@gmail.com>
Thu, 9 Dec 2010 18:43:41 +0000 (19:43 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 9 Dec 2010 18:43:41 +0000 (19:43 +0100)
qcsrc/client/autocvars.qh
qcsrc/client/hud.qc

index f3d18aa9ffc41df7e5d7a2c873c0b9b5b937ca7c..bc54fedbfb201e7db969597a3b9e2c02e8cf5256 100644 (file)
@@ -215,6 +215,7 @@ float autocvar_hud_panel_radar_rotation;
 float autocvar_hud_panel_radar_scale;
 float autocvar_hud_panel_radar_zoommode;
 float autocvar_hud_panel_score;
+float autocvar_hud_panel_score_rankings;
 float autocvar_hud_panel_timer;
 float autocvar_hud_panel_timer_increment;
 float autocvar_hud_panel_vote;
index 092463118555f0370d4a296f004c3f8c842f9c01..084e23921c4d116d16771c425bf6fcb9b0074e41 100644 (file)
@@ -3526,7 +3526,7 @@ void HUD_Score(void)
                drawstring_aspect(pos, timer, eX * 0.75 * mySize_x + eY * mySize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
                drawfont = hud_font;
        } else if (!teamplay) { // non-teamgames
-               if ((spectatee_status == -1 && !autocvar__hud_configure) || cvar("hud_panel_score_rankings"))
+               if ((spectatee_status == -1 && !autocvar__hud_configure) || autocvar_hud_panel_score_rankings)
                {
 #define SCOREPANEL_MAX_ENTRIES 6
 #define SCOREPANEL_ASPECTRATIO 2
@@ -3549,7 +3549,7 @@ void HUD_Score(void)
                                        //simulate my score is lower than all displayed players,
                                        //so that I don't appear at all showing pure rankings.
                                        //This is to better show the difference between the 2 ranking views
-                                       if (i == entries-1 && cvar("hud_panel_score_rankings") == 1)
+                                       if (i == entries-1 && autocvar_hud_panel_score_rankings == 1)
                                        {
                                                rgb = '1 1 0';
                                                drawfill(pos - eY * (height * (1 - 0.9) / 2), eX * mySize_x + eY * height, rgb, 0.3 * panel_fg_alpha, DRAWFLAG_NORMAL);
@@ -3579,7 +3579,7 @@ void HUD_Score(void)
                                        continue;
 
                                if (i == entries-1 && !me_printed && pl != me)
-                               if (cvar("hud_panel_score_rankings") == 1 && spectatee_status != -1)
+                               if (autocvar_hud_panel_score_rankings == 1 && spectatee_status != -1)
                                {
                                        for (pl = me.sort_next; pl; pl = pl.sort_next)
                                                if (pl.team != COLOR_SPECTATOR)