]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qh
Registry API: add REGISTRY_GET
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qh
index 3ae473503db46e24d8f8877a2fb05cd998142082..840eb0a88b05c33f98e9ed2954cc6d7d74058123 100644 (file)
@@ -6,7 +6,6 @@
 
 // 24 so it matches the limit for the .items field
 REGISTRY(Items, 24)
-#define Items_from(i) _Items_from(i, NULL)
 #ifdef GAMEQC
 REGISTRY_DEPENDS(Items, Models)
 #endif
@@ -15,6 +14,8 @@ 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();