]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/generator.qc
Mutators: combine headers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / generator.qc
index 13aa35ab53bbf46c42405d003dc70c81e7a9ec82..2a1c0b2f861ab34b1035e0087880e97d67c5849c 100644 (file)
@@ -1,4 +1,6 @@
-float generator_send(entity to, float sf)
+#include "generator.qh"
+
+bool generator_send(entity this, entity to, int sf)
 {
        WriteByte(MSG_ENTITY, ENT_CLIENT_GENERATOR);
        WriteByte(MSG_ENTITY, sf);
@@ -24,12 +26,12 @@ float generator_send(entity to, float sf)
                        WriteByte(MSG_ENTITY, ceil((self.health / self.max_health) * 255));
        }
 
-       return TRUE;
+       return true;
 }
 
 void generator_link(void() spawnproc)
-{
-       Net_LinkEntity(self, TRUE, 0, generator_send);
+{SELFPARAM();
+       Net_LinkEntity(self, true, 0, generator_send);
        self.think              = spawnproc;
        self.nextthink  = time;
 }