]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/controlpoint.qc
Nades: don't forget to think
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / controlpoint.qc
index d088e2e82ec513f0ad3549bc237c25b259ad3035..ceeb4f185b3fd846af054373f3c70ae5e7aa7c93 100644 (file)
@@ -1,4 +1,10 @@
-float cpicon_send(entity to, float sf)
+#include "controlpoint.qh"
+
+#include "command/common.qh"
+
+.bool iscaptured;
+
+bool cpicon_send(entity this, entity to, int sf)
 {
        WriteByte(MSG_ENTITY, ENT_CLIENT_CONTROLPOINT_ICON);
        WriteByte(MSG_ENTITY, sf);
@@ -25,12 +31,12 @@ float cpicon_send(entity to, float sf)
                        WriteByte(MSG_ENTITY, ceil((self.health / self.max_health) * 255));
        }
 
-       return TRUE;
+       return true;
 }
 
 void onslaught_controlpoint_icon_link(entity e, void() spawnproc)
 {
-       Net_LinkEntity(e, TRUE, 0, cpicon_send);
+       Net_LinkEntity(e, true, 0, cpicon_send);
        e.think         = spawnproc;
        e.nextthink     = time * sys_frametime;
 }