X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fall.qh;h=39400eda12ccdc8f7f0ef0523f92a6920d8a9afb;hp=3ff4a54155a3cccaf0ea91b69a38a02ac90c15dc;hb=294e75cd811b19c7f26271fec13c142470266bf6;hpb=8e4957c252f8381e37f2a72e227797bf51e5cc2f diff --git a/qcsrc/common/items/all.qh b/qcsrc/common/items/all.qh index 3ff4a54155..39400eda12 100644 --- a/qcsrc/common/items/all.qh +++ b/qcsrc/common/items/all.qh @@ -4,9 +4,8 @@ #include "item.qh" -// 24 so it matches the limit for the .items field -REGISTRY(Items, 24) -#define Items_from(i) _Items_from(i, NULL) +// NOTE: 24 is the limit for the .items field +REGISTRY(Items, 32) #ifdef GAMEQC REGISTRY_DEPENDS(Items, Models) #endif @@ -15,11 +14,13 @@ REGISTER_REGISTRY(Items) REGISTRY_SORT(Items) REGISTRY_CHECK(Items) + +REGISTRY_DEFINE_GET(Items, NULL) STATIC_INIT(Items) { FOREACH(Items, true, it.m_id = i); } void Dump_Items(); -GENERIC_COMMAND(dumpitems, "Dump all items to the console") { +GENERIC_COMMAND(dumpitems, "Dump all items to the console", false) { switch (request) { case CMD_REQUEST_COMMAND: { Dump_Items();