X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fcommon.qh;h=c9aad4b7971c18634935bdb0d6b4659349c2f4d3;hb=c05104bde1e758c4022f9755f02f177aa0476134;hp=f03a815de26b6de896ddee64a71dc6e05e0476c2;hpb=45d8904a100765555e622598a39967963733df1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/common.qh b/qcsrc/server/command/common.qh index f03a815de..c9aad4b79 100644 --- a/qcsrc/server/command/common.qh +++ b/qcsrc/server/command/common.qh @@ -2,10 +2,11 @@ #include REGISTRY(COMMON_COMMANDS, BITS(7)) -#define COMMON_COMMANDS_from(i) _COMMON_COMMANDS_from(i, NULL) REGISTER_REGISTRY(COMMON_COMMANDS) REGISTRY_SORT(COMMON_COMMANDS) +REGISTRY_DEFINE_GET(COMMON_COMMANDS, NULL) + #define COMMON_COMMAND(id, description) \ CLASS(commoncommand_##id, Command) \ ATTRIB(commoncommand_##id, m_name, string, #id); \ @@ -53,7 +54,7 @@ float timeout_status; // (values: 0, 1, 2) contains whether a timeout is not .float allowed_timeouts; // contains the number of allowed timeouts for each player .vector lastV_angle; // used when pausing the game in order to force the player to keep his old view angle fixed -// allow functions to be used in other code like g_world.qc and teamplay.qc +// allow functions to be used in other code like world.qc and teamplay.qc void timeout_handler_think(entity this); // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file