X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fall.qh;h=9bbce5e14a67d6d57474de504b1b696d1c9281f5;hb=6f4c7132e635c0150e3894f2f9958b361ce0c238;hp=d1eb3cf76e284bf3b1ddc547366bef69218ac1ef;hpb=c741e6b3f012aa525f23e1df30d1d933b383fbc5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/all.qh b/qcsrc/common/command/all.qh index d1eb3cf76..9bbce5e14 100644 --- a/qcsrc/common/command/all.qh +++ b/qcsrc/common/command/all.qh @@ -5,7 +5,7 @@ REGISTRY(GENERIC_COMMANDS, BITS(7)) #define GENERIC_COMMANDS_from(i) _GENERIC_COMMANDS_from(i, NULL) REGISTER_REGISTRY(GENERIC_COMMANDS) -REGISTRY_SORT(GENERIC_COMMANDS, 0) +REGISTRY_SORT(GENERIC_COMMANDS) #define GENERIC_COMMAND(id, description) \ CLASS(genericcommand_##id, Command) \ @@ -13,10 +13,10 @@ REGISTRY_SORT(GENERIC_COMMANDS, 0) ATTRIB(genericcommand_##id, m_description, string, description); \ ENDCLASS(genericcommand_##id) \ REGISTER(GENERIC_COMMANDS, CMD_G, id, m_id, NEW(genericcommand_##id)); \ - METHOD(genericcommand_##id, m_invokecmd, void(int request, int arguments, string command)) + METHOD(genericcommand_##id, m_invokecmd, void(int request, entity caller, int arguments, string command)) STATIC_INIT(GENERIC_COMMANDS_aliases) { - FOREACH(GENERIC_COMMANDS, true, LAMBDA(localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_svmenu")))); + FOREACH(GENERIC_COMMANDS, true, localcmd(sprintf("alias %1$s \"%2$s %1$s ${* ?}\"\n", it.m_name, "qc_cmd_svmenu"))); } #include "generic.qh"