]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Correct cvar name
authorterencehill <piuntn@gmail.com>
Mon, 19 Dec 2011 23:25:08 +0000 (00:25 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 19 Dec 2011 23:25:08 +0000 (00:25 +0100)
_hud_common.cfg
qcsrc/client/autocvars.qh
qcsrc/client/hud.qc

index 8266694f2e4c95e97a2a8e02dc4456f93035c14e..7ecdf4cd29f19346e6bcabfbadfbb2ad73622d61 100644 (file)
@@ -26,7 +26,7 @@ seta hud_panel_engineinfo_framecounter_exponentialmovingaverage 1 "use an averag
 seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point"
 seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster"
 
-seta hud_panel_itemstime_maxtime "30" "when left time is at least this amount, the status bar is full"
+seta hud_panel_itemstime_progressbar_maxtime "30" "when left time is at least this amount, the status bar is full"
 
 // hud panel aliases
 alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4"
index 602fb863cdcfde3aa3b848cb3d981c34cf9fa385..342aafdd3f3ecb93e5cc8fe2dbc704b029337ace 100644 (file)
@@ -244,8 +244,8 @@ float autocvar_hud_panel_infomessages;
 float autocvar_hud_panel_infomessages_flip;
 float autocvar_hud_panel_itemstime;
 float autocvar_hud_panel_itemstime_iconalign;
-float autocvar_hud_panel_itemstime_maxitemstime;
 float autocvar_hud_panel_itemstime_progressbar;
+float autocvar_hud_panel_itemstime_progressbar_maxtime;
 string autocvar_hud_panel_itemstime_progressbar_name;
 float autocvar_hud_panel_itemstime_progressbar_xoffset;
 float autocvar_hud_panel_itemstime_showspawned;
index aa857db1bdcd11afe9bca01f5a476889029e5c6a..c7fb2fc2334c2c9a72fe4e1b4732ca6dc3a570dd 100644 (file)
@@ -4837,7 +4837,7 @@ void DrawItemsTimeItem(vector myPos, vector mySize, float itemcode)
        }
 
     if(t > 0 && autocvar_hud_panel_itemstime_progressbar)
-        HUD_Panel_DrawProgressBar(myPos + eX * autocvar_hud_panel_itemstime_progressbar_xoffset * mySize_x, mySize - eX * autocvar_hud_panel_itemstime_progressbar_xoffset * mySize_x, autocvar_hud_panel_itemstime_progressbar_name, t/autocvar_hud_panel_itemstime_maxitemstime, 0, 0, color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
+        HUD_Panel_DrawProgressBar(myPos + eX * autocvar_hud_panel_itemstime_progressbar_xoffset * mySize_x, mySize - eX * autocvar_hud_panel_itemstime_progressbar_xoffset * mySize_x, autocvar_hud_panel_itemstime_progressbar_name, t/autocvar_hud_panel_itemstime_progressbar_maxtime, 0, 0, color, autocvar_hud_progressbar_alpha * panel_fg_alpha, DRAWFLAG_NORMAL);
 
     if(t > 0 && autocvar_hud_panel_itemstime_text)
        drawstring_aspect(numpos, ftos(t), eX * (2/3) * mySize_x + eY * mySize_y, color, panel_fg_alpha, DRAWFLAG_NORMAL);