]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
We need to send location as coords, can't 'short'cut this (big maps)
authorMario <mario@smbclan.net>
Sat, 24 Dec 2016 20:40:11 +0000 (06:40 +1000)
committerMario <mario@smbclan.net>
Sat, 24 Dec 2016 20:40:11 +0000 (06:40 +1000)
qcsrc/common/ent_cs.qc

index 71052bd2b7fdbf256aaf2d034ec2490801e9657c..5a5c6acbebfefced8df45a82313944e36e49d496 100644 (file)
@@ -13,9 +13,9 @@ MACRO_END
 // #define PROP(public, fld, set, sv, cl)
 #define ENTCS_NETPROPS(ent, PROP) PROP(false, sv_entnum, ENTCS_SET_NORMAL, {}, {}) /* sentinel */ \
        PROP(false, origin, ENTCS_SET_NORMAL, \
-       { WriteShort(chan, ent.origin.x);  WriteShort(chan, ent.origin.y); \
-         WriteShort(chan, ent.origin.z); }, \
-       { ent.has_sv_origin = true; vector v; v.x = ReadShort(); v.y = ReadShort(); v.z = ReadShort(); setorigin(ent, v); }) \
+       { WriteCoord(chan, ent.origin.x);  WriteCoord(chan, ent.origin.y); \
+         WriteCoord(chan, ent.origin.z); }, \
+       { ent.has_sv_origin = true; vector v; v.x = ReadCoord(); v.y = ReadCoord(); v.z = ReadCoord(); setorigin(ent, v); }) \
     \
        PROP(false, angles_y, ENTCS_SET_NORMAL, \
        { WriteByte(chan, ent.angles.y / 360 * 256); }, \