]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/powerup.qc
Fix items not respawning
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qc
index 2bf0ddfd53f029cae05bc0a95ff2e5c7e0699ddc..7270664d41f61504b98a7c50dcf782ef75c2e06c 100644 (file)
@@ -3,15 +3,15 @@
 
 #define WITH(it) this.m_##it;
 #define CONFIGURE(...) MAP(WITH, __VA_ARGS__)
-#define DEFINE(id, ...)                                                 \
-    REGISTER_ITEM(id, Ammo, LAMBDA(                                     \
-        IF(SV, CONFIGURE                                                \
-        ,   botvalue            =   100000                              \
-        ,   itemflags           =   FL_POWERUP                          \
-        ,   respawntime         =         g_pickup_respawntime_powerup  \
-        ,   respawntimejitter   =   g_pickup_respawntimejitter_powerup  \
-        )                                                               \
-        MAP(IDENTITY, __VA_ARGS__)                                      \
+#define DEFINE(id, ...)                                                     \
+    REGISTER_ITEM(id, Ammo, LAMBDA(                                         \
+        IF(SV, CONFIGURE                                                    \
+        ,   botvalue            =   100000                                  \
+        ,   itemflags           =   FL_POWERUP                              \
+        ,   respawntime         =         GET(g_pickup_respawntime_powerup) \
+        ,   respawntimejitter   =   GET(g_pickup_respawntimejitter_powerup) \
+        )                                                                   \
+        MAP(IDENTITY, __VA_ARGS__)                                          \
     ))
 
 DEFINE(Strength