From 8bacdae641324a908bde96f8ae2ba2b9afb2146b Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 20 Jan 2014 12:16:28 +0100 Subject: [PATCH] Make hud_panel_quickmenu_file 0 work as hud_panel_quickmenu_file "" --- _hud_common.cfg | 2 +- qcsrc/client/hud.qc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_hud_common.cfg b/_hud_common.cfg index 57d1b0931..6541f0ea3 100644 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@ -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 diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index a240e3ca3..0906b624d 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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 -- 2.39.2