]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/all.qh
Fix ammo rating, it was always rated 0
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qh
index eea1de9a4a7e3b1ce75694eafdbdcb9bd274b1ba..d377776cd554f0bc5c3b0467c755cf8fe641ad37 100644 (file)
@@ -1,14 +1,12 @@
-#ifndef ITEMS_ALL_H
-#define ITEMS_ALL_H
+#pragma once
 
-#include "../command/all.qh"
+#include <common/command/_mod.qh>
 
 #include "item.qh"
 
 REGISTRY(Items, BITS(5))
 #define Items_from(i) _Items_from(i, NULL)
 REGISTER_REGISTRY(Items)
-/** If you register a new item, make sure to add it to all.inc */
 #define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
 
 REGISTRY_SORT(Items)
@@ -31,8 +29,6 @@ GENERIC_COMMAND(dumpitems, "Dump all items to the console") {
     }
 }
 
-#ifndef MENUQC
+#ifdef GAMEQC
 string Item_Model(string item_mdl);
 #endif
-
-#endif