]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use proper cvar for custom quickmenu
authorz411 <z411@omaera.org>
Sun, 30 Oct 2022 16:43:00 +0000 (13:43 -0300)
committerz411 <z411@omaera.org>
Sun, 30 Oct 2022 16:43:00 +0000 (13:43 -0300)
qcsrc/client/hud/panel/quickmenu.qc

index 0551ec68fd35f7223a0fd7783bdf8a19983b0ba7..8147467bdb8c0e8fd07aa3955a6470a933e23a62 100644 (file)
@@ -88,9 +88,13 @@ bool QuickMenu_Open(string mode, string submenu, string file)
 
        if(mode == "")
        {
-               // z411 Load quickmenu.txt by default
-               mode = "file";
-               file = "quickmenu.txt";
+               if(autocvar__hud_panel_quickmenu_file_from_server)
+               {
+                       mode = "file";
+                       file = autocvar__hud_panel_quickmenu_file_from_server;
+               }
+               else
+                       mode = "default";
        }
 
        if(mode == "file")