From: Mario Date: Sat, 24 Dec 2016 20:40:11 +0000 (+1000) Subject: We need to send location as coords, can't 'short'cut this (big maps) X-Git-Tag: xonotic-v0.8.2~361 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a3d7cb5a3c18307e896ca1600afd26c6b8502773;p=xonotic%2Fxonotic-data.pk3dir.git We need to send location as coords, can't 'short'cut this (big maps) --- diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index 71052bd2b..5a5c6acbe 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -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); }, \