]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qh
common: move instagib and nexball as they add custom items and weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qh
index 92c77579abb21d5aba62bad2efc30f792c978f99..a825b4ed16fbfb58a8718ce4ca5cd86d2e9c97cb 100644 (file)
@@ -10,6 +10,9 @@ REGISTER_REGISTRY(RegisterItems)
 /** If you register a new item, make sure to add it to all.inc */
 #define REGISTER_ITEM(id, class) REGISTER(RegisterItems, ITEM, Items, id, m_id, NEW(class))
 
+REGISTRY_SORT(Items, m_name, 0)
+STATIC_INIT(Items) { FOREACH(Items, true, LAMBDA(it.m_id = i)); }
+
 void Dump_Items();
 
 GENERIC_COMMAND(dumpitems, "Dump all items to the console") {