]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item.qh
Use the new item system for ammo
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item.qh
index cf2779aa02efc505977711a8f36d22593b275b9b..1c8939beb09800d497c9eab75f581c3bcc981075 100644 (file)
@@ -28,8 +28,10 @@ ITEM_SIGNALS(ITEM_SEND)
 
 int ITEM_COUNT;
 #define REGISTER_ITEM(id, class, body)          \
+    entity ITEM_##id;                           \
     void RegisterItems_##id() {                 \
         const noref entity this = NEW(class);   \
+        ITEM_##id = this;                       \
         ITEMS[ITEM_COUNT++] = this;             \
         body                                    \
     }                                           \