X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fcommand%2Fmenu_cmd.qc;h=93825cd56098d73e2ebe53aa0aee97041fcaf03c;hp=c7499e58e40a8a94ba1f31f2c504f0310bb465a3;hb=77f03e6ce033bef39ac19e0e7cb6e606ffcb26db;hpb=e072c61866a3bc33d2de6e4cd904f7acc6d54c8c diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index c7499e58e..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;