STATIC_INIT(default_order_items_label)
{
IL_EACH(default_order_items, true, {
- switch(it.netname)
+ if(!(it.instanceOfPowerup
+ || it == ITEM_HealthMega || it == ITEM_HealthBig
+ || it == ITEM_ArmorMega || it == ITEM_ArmorBig
+ ))
{
- case "bullets":
- case "cells":
- case "plasma":
- case "rockets":
- case "shells":
- case "vaporizer_cells":
- case "fuel":
- case "armor_small":
- case "armor_medium":
- case "health_small":
- case "health_medium":
- it.uninteresting = true;
+ it.uninteresting = true;
}
});
}
#define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
#ifdef CSQC
+// Copy Items registry here before it gets sorted alphabetically by REGISTRY_SORT
+// so we can keep items sorted by categories (as they appear in the code)
IntrusiveList default_order_items;
STATIC_INIT(default_order_items)
{