]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make hud_panel_quickmenu_file 0 work as hud_panel_quickmenu_file ""
authorterencehill <piuntn@gmail.com>
Mon, 20 Jan 2014 11:16:28 +0000 (12:16 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 20 Jan 2014 13:12:01 +0000 (14:12 +0100)
_hud_common.cfg
qcsrc/client/hud.qc

index 57d1b09312268e742d39a14c4b8c5f72963a5430..6541f0ea3bc79d19c48f257855739b29603e780d 100644 (file)
@@ -37,7 +37,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_quickmenu_file "" "load the quick menu from this file"
+seta hud_panel_quickmenu_file "" "load the quick menu from this file (empty or 0 to disable)"
 seta hud_panel_quickmenu_translatecommands 0 "when the game is translated, translate strings inside commands too (useful for chat commands)"
 
 // hud panel aliases
index a240e3ca31063aa87061c302a85ef42b536ed3f3..0906b624d7cadf2c78b8e23cab473ef4a1e21cf5 100644 (file)
@@ -4436,6 +4436,7 @@ float HUD_QuickMenu_Buffer_Init()
        float fh = -1;
        string s;
        if(autocvar_hud_panel_quickmenu_file != "")
+       if(autocvar_hud_panel_quickmenu_file != "0")
                fh = fopen(autocvar_hud_panel_quickmenu_file, FILE_READ);
        if(fh < 0)
        {
@@ -4821,7 +4822,7 @@ void HUD_QuickMenu(void)
 
                if(!hud_draw_maximized) return;
                if(mv_active) return;
-               //if(!autocvar_hud_panel_quickmenu) return; // autocvar exists only for conformity with other panels
+               //if(!autocvar_hud_panel_quickmenu) return;
                if(!hud_panel_quickmenu) return;
        }
        else