]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_items.qc
Get VoreTournament code to compile with gmqcc. To be compiled with the same parameter...
[voretournament/voretournament.git] / data / qcsrc / server / t_items.qc
index 4ecb6527ef7bedd90fa4b3ca9c664ec6c5b96372..4bfa0771771c2dfc4f4f7edde6b92a0ddf90991c 100644 (file)
@@ -5,6 +5,8 @@
 #define ITEM_RESPAWNTIME_INITIAL(i) (ITEM_RESPAWN_TICKS + random() * ((i).respawntime + (i).respawntimejitter - ITEM_RESPAWN_TICKS))\r
        // range: 10 .. respawntime + respawntimejitter\r
 \r
+#define Item_Func_Null null\r
+\r
 floatfield Item_CounterField(float it)\r
 {\r
        switch(it)\r
@@ -69,7 +71,7 @@ void Item_Show (entity e, float mode)
                e.colormod = '0 0 0';\r
                e.glowmod = e.colormod;\r
                e.alpha = 0;\r
-               e.customizeentityforclient = func_null;\r
+               e.customizeentityforclient = Item_Func_Null;\r
 \r
                e.spawnshieldtime = 1;\r
        }\r
@@ -81,7 +83,7 @@ void Item_Show (entity e, float mode)
                e.colormod = '0 0 0';\r
                e.glowmod = e.colormod;\r
                e.alpha = 0;\r
-               e.customizeentityforclient = func_null;\r
+               e.customizeentityforclient = Item_Func_Null;\r
 \r
                e.spawnshieldtime = 1;\r
        }\r
@@ -105,7 +107,7 @@ void Item_Show (entity e, float mode)
                e.colormod = stov(cvar_string("g_ghost_items_color"));\r
                e.glowmod = e.colormod;\r
                e.alpha = g_ghost_items;\r
-               e.customizeentityforclient = func_null;\r
+               e.customizeentityforclient = Item_Func_Null;\r
 \r
                e.spawnshieldtime = 1;\r
        }\r
@@ -117,7 +119,7 @@ void Item_Show (entity e, float mode)
                e.colormod = stov(cvar_string("g_ghost_items_color"));\r
                e.glowmod = e.colormod;\r
                e.alpha = 0;\r
-               e.customizeentityforclient = func_null;\r
+               e.customizeentityforclient = Item_Func_Null;\r
 \r
                e.spawnshieldtime = 1;\r
        }\r