]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/generator.qc
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / generator.qc
index 3e0b5171f249350679e64ec0cf9896ed4933227d..e6c746a751c747da906b3673a9a0ed4ff5256dc2 100644 (file)
@@ -1,8 +1,8 @@
 #include "generator.qh"
 
-bool generator_send(entity to, int sf)
+bool generator_send(entity this, entity to, int sf)
 {
-       WriteByte(MSG_ENTITY, ENT_CLIENT_GENERATOR);
+       WriteHeader(MSG_ENTITY, ENT_CLIENT_GENERATOR);
        WriteByte(MSG_ENTITY, sf);
        if(sf & GSF_SETUP)
        {
@@ -30,7 +30,7 @@ bool generator_send(entity to, int sf)
 }
 
 void generator_link(void() spawnproc)
-{
+{SELFPARAM();
        Net_LinkEntity(self, true, 0, generator_send);
        self.think              = spawnproc;
        self.nextthink  = time;