]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/ent_cs.qc
Send health and armor as shorts instead of coords
[voretournament/voretournament.git] / data / qcsrc / server / ent_cs.qc
index 9bed96b77f1b826748f8fae34eb2338b688491c0..733c449cd7b66892d7932fcde66f49e013e48a4d 100644 (file)
@@ -48,9 +48,9 @@ float entcs_send(entity to, float sf)
        if(sf & 4)\r
                WriteByte(MSG_ENTITY, self.angles_y * 256.0 / 360);\r
        if(sf & 8)\r
-               WriteCoord(MSG_ENTITY, self.health);\r
+               WriteShort(MSG_ENTITY, self.health);\r
        if(sf & 16)\r
-               WriteCoord(MSG_ENTITY, self.armorvalue);\r
+               WriteShort(MSG_ENTITY, self.armorvalue);\r
        if(sf & 32)\r
                WriteByte(MSG_ENTITY, num_for_edict(self.predator));\r
        return TRUE;\r