]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/effects/all.qc
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / effects / all.qc
index bc739192245ce8beadc88a30fec8a04d3811bc19..347a2111b563f4ebdb4e18de5e561ed1eb956306 100644 (file)
@@ -1,7 +1,8 @@
 #include "all.qh"
 
-REGISTER_NET_TEMP(net_effect, bool isNew)
+REGISTER_NET_TEMP(net_effect)
 #ifdef CSQC
+NET_HANDLE(net_effect, bool isNew)
 {
        int net_name = (Effects_COUNT >= 255) ? ReadShort() : ReadByte();
 
@@ -30,6 +31,7 @@ REGISTER_NET_TEMP(net_effect, bool isNew)
                WarpZone_TrailParticles(world, particleeffectnum(eff), v, vel);
        else
                pointparticles(eff, v, vel, eff_cnt);
+       return true;
 }
 #endif