]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/ent_cs.qc
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / ent_cs.qc
index 548c60429b709b3064eb12491f4585d2a2b388be..9c98e7d99f2ed32ccf7dc631f204bd6ebf3bcfe8 100644 (file)
@@ -1,7 +1,5 @@
 #include "ent_cs.qh"
 
-#include "mutators/gamemode_ca.qh"
-
 float entcs_customize()
 {
        SELFPARAM();
@@ -21,7 +19,7 @@ float entcs_customize()
 
 bool entcs_send(entity this, entity to, int sf)
 {
-       WriteByte(MSG_ENTITY, ENT_CLIENT_ENTCS);
+       WriteHeader(MSG_ENTITY, ENT_CLIENT_ENTCS);
        WriteByte(MSG_ENTITY, sf);
        if(sf & BIT(0))
                WriteByte(MSG_ENTITY, num_for_edict(self.owner) - 1);
@@ -70,6 +68,7 @@ void entcs_think()
 entity attach_entcs(entity e)
 {
        entity ent = e.entcs = new(entcs_sender);
+       make_pure(ent);
        ent.owner = e;
        ent.think = entcs_think;
        ent.nextthink = time;