]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/nades/all.qc
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / nades / all.qc
index 30ad1782f25e56b2ab9f22cca76bce7685ae3bb6..7dfae12ac432b692ce17b2cfe9e1323cf7c1f593 100644 (file)
@@ -49,10 +49,11 @@ void healer_setup(entity e)
 }
 #endif // CSQC
 
-REGISTER_NET_LINKED(Nade_Heal, bool isNew)
+REGISTER_NET_LINKED(Nade_Heal)
 #ifdef CSQC
+NET_HANDLE(Nade_Heal, bool isNew)
 {
-       Net_Accept();
+       Net_Accept(Nade_Heal);
        int sf = ReadByte();
        if (sf & 1) {
                this.origin_x = ReadCoord();
@@ -65,6 +66,7 @@ REGISTER_NET_LINKED(Nade_Heal, bool isNew)
                // this.ltime = time + this.healer_lifetime;
                healer_setup(this);
        }
+       return true;
 }
 #endif