]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/command/menu_cmd.qc
Clean up MENUQC #includes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / command / menu_cmd.qc
index a8b569cc35dc61d75f4fe94d2c23c06cb4639196..bc044a2aa585b54d4ed915f7b403e5943ff6d983 100644 (file)
@@ -1,3 +1,7 @@
+#include "menu_cmd.qh"
+
+#include "../../common/command/generic.qh"
+
 string _dumptree_space;
 void _dumptree_open(entity pass, entity me)
 {
@@ -51,6 +55,12 @@ void GameCommand(string theCommand)
                return;
        }
 
+       if(argv(0) == "update_conwidths_before_vid_restart")
+       {
+               updateConwidths(cvar("vid_width"), cvar("vid_height"), cvar("vid_pixelheight"));
+               return;
+       }
+
        if(argv(0) == "directmenu" || argv(0) == "directpanelhudmenu")
        {
                string filter = string_null;
@@ -110,21 +120,5 @@ void GameCommand(string theCommand)
                return;
        }
 
-       if(argv(0) == "debugstats_details")
-       {
-               PlayerInfo_Init();
-               PlayerInfo_Details();
-               return;
-       }
-
-       if(argv(0) == "debugstats_basic")
-       {
-                entity p = spawn();
-                p.playerid = 0;
-               PlayerInfo_Init();
-               PlayerInfo_Basic(p);
-               return;
-       }
-
        print(_("Invalid command. For a list of supported commands, try menu_cmd help.\n"));
 }