X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fcommand%2Fmenu_cmd.qc;fp=qcsrc%2Fmenu%2Fcommand%2Fmenu_cmd.qc;h=0f87cbb0959cb38df039f1cac70f796cabd0185b;hp=6b944c90e419c1acf66357bbee5f009e1610986a;hb=4d27b8affb4defa4f2d14eaf9d87b996c57459f3;hpb=c8ee5421ec68d102e7b3d5861b698dc7f8e663bb diff --git a/qcsrc/menu/command/menu_cmd.qc b/qcsrc/menu/command/menu_cmd.qc index 6b944c90e4..0f87cbb095 100644 --- a/qcsrc/menu/command/menu_cmd.qc +++ b/qcsrc/menu/command/menu_cmd.qc @@ -78,7 +78,7 @@ void GameCommand(string theCommand) { LOG_INFO(_("Available options:\n")); - FOREACH_ENTITY_ORDERED(it.name != "", LAMBDA( + FOREACH_ENTITY_ORDERED(it.name != "", { if (it.classname == "vtbl") continue; string s = it.name; if (filter) @@ -87,7 +87,7 @@ void GameCommand(string theCommand) s = substring(s, strlen(filter), strlen(s) - strlen(filter)); } LOG_INFOF(" %s\n", s); - )); + }); } else if (argc == 2 && !isdemo()) // don't allow this command in demos {