vector tmpos = pos;
int column = 0;
- FOREACH(Items, true, {
+ IL_EACH(default_order_items, true, {
int n = g_inventory.inv_items[it.m_id];
//n = 1 + floor(i * 3 + 4.8) % 7; // debug: display a value for each item
if (n <= 0) continue;
REGISTER_REGISTRY(Items)
#define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
+#ifdef CSQC
+IntrusiveList default_order_items;
+STATIC_INIT(default_order_items)
+{
+ default_order_items = IL_NEW();
+ FOREACH(Items, true, {
+ IL_PUSH(default_order_items, it);
+ });
+}
+#endif
+
REGISTRY_SORT(Items)
REGISTRY_CHECK(Items)