X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fall.qh;h=15285b92ecac7e33144040d0ffbbb26b58ba992e;hp=9e16238d17af8dea6150ee44c210229052ae5227;hb=5134c592b8e912ce0f05ff8f8a2f3c258f8924d6;hpb=1cbef966e133966c5b5f0f5b58fbd1a5851ed35b diff --git a/qcsrc/common/command/all.qh b/qcsrc/common/command/all.qh index 9e16238d1..15285b92e 100644 --- a/qcsrc/common/command/all.qh +++ b/qcsrc/common/command/all.qh @@ -1,5 +1,4 @@ -#ifndef COMMON_COMMANDS_ALL_H -#define COMMON_COMMANDS_ALL_H +#pragma once #include "command.qh" REGISTRY(GENERIC_COMMANDS, BITS(7)) @@ -13,14 +12,12 @@ 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" #include "markup.qh" #include "rpn.qh" - -#endif