X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fcommand%2Fmenu_cmd.qc;h=93825cd56098d73e2ebe53aa0aee97041fcaf03c;hb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;hp=e89761cc34338b4ca6225cce9750fbb61926fd62;hpb=9029f02a98472212424469b1ea5d73597d41cfe8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index e89761cc3..93825cd56 100644 --- a/qcsrc/menu/command/menu_cmd.qc +++ b/qcsrc/menu/command/menu_cmd.qc @@ -1,3 +1,7 @@ +#include "menu_cmd.qh" + +#include "../../common/command/generic.qh" + string _dumptree_space; void _dumptree_open(entity pass, entity me) { @@ -85,7 +89,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 +123,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")); }