]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/nades/all.qh
Uncrustify
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / nades / all.qh
index f5a274d98095424716f8ffe0cbc05ee5bc2c52b7..235dd97dd186dea4f40d970c4ef0930da8602bc1 100644 (file)
@@ -21,9 +21,12 @@ const int PROJECTILE_NADE_HEAL_BURN = 81;
 const int PROJECTILE_NADE_MONSTER = 82;
 const int PROJECTILE_NADE_MONSTER_BURN = 83;
 
-REGISTRY(Nades, 8)
+REGISTRY(Nades, BITS(4))
+#define Nades_from(i) _Nades_from(i, NADE_TYPE_Null)
 REGISTER_REGISTRY(RegisterNades)
-#define REGISTER_NADE(id) REGISTER(RegisterNades, NADE_TYPE, Nades, Nades_COUNT, id, m_id, NEW(Nade))
+REGISTRY_CHECK(Nades)
+
+#define REGISTER_NADE(id) REGISTER(RegisterNades, NADE_TYPE, Nades, id, m_id, NEW(Nade))
 
 CLASS(Nade, Object)
     ATTRIB(Nade, m_id, int, 0)
@@ -40,7 +43,7 @@ ENDCLASS(Nade)
 REGISTER_NADE(Null);
 
 #ifdef SVQC
-float healer_send(entity to, int sf);
+bool healer_send(entity this, entity to, int sf);
 #endif
 
 entity Nade_FromProjectile(float proj)