]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/gamecommand.qc
inventory panel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / gamecommand.qc
index 94357b2270ed928ac907c7676be41147b03cd5f5..d2ef187664439735b203728530543167fc54b477 100644 (file)
@@ -65,10 +65,7 @@ void GameCommand(string theCommand)
        if(argv(0) == "directpanelhudmenu")
        {
                // switch to a menu item
-               m_goto("HUDOptions");
-               entity panelvar;
-               panelvar = findstring(NULL, name, "HUDOptions");
-               panelvar.change(panelvar, stof(argv(1)));
+               m_goto(strcat("HUD", argv(1)));
                return;
        }