X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fall.qh;h=129090d3ab442b0bfeaf468434a778fbe4f7147a;hb=42e255d014f2c6a1871177ea511f630624cdfb57;hp=9e16238d17af8dea6150ee44c210229052ae5227;hpb=e585642a5847c07f4376020e2f2118e3fa387e89;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/all.qh b/qcsrc/common/command/all.qh index 9e16238d1..129090d3a 100644 --- a/qcsrc/common/command/all.qh +++ b/qcsrc/common/command/all.qh @@ -13,10 +13,10 @@ REGISTRY_SORT(GENERIC_COMMANDS) 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(genericcommand_##id this, 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"