]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/command/menu_cmd.qc
Merge branch 'master' into TimePath/experiments/csqc_prediction (blame TimePath if...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / command / menu_cmd.qc
index e89761cc34338b4ca6225cce9750fbb61926fd62..89086406699a995153b8df9a4f7e293b36945859 100644 (file)
@@ -85,7 +85,10 @@ void GameCommand(string theCommand)
                                }
                }
                else if(argc == 2 && !isdemo()) // don't allow this command in demos
+               {
+                       m_play_click_sound(MENU_SOUND_OPEN);
                        m_goto(strcat(filter, argv(1))); // switch to a menu item
+               }
                if(filter)
                        strunzone(filter);
                return;
@@ -116,12 +119,5 @@ void GameCommand(string theCommand)
                return;
        }
 
-       if(argv(0) == "debugstats")
-       {
-               PlayerInfo_Init();
-               PlayerInfo_Details();
-               return;
-       }
-
        print(_("Invalid command. For a list of supported commands, try menu_cmd help.\n"));
 }