From a3d7cb5a3c18307e896ca1600afd26c6b8502773 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 25 Dec 2016 06:40:11 +1000 Subject: [PATCH] We need to send location as coords, can't 'short'cut this (big maps) --- qcsrc/common/ent_cs.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }, \ -- 2.39.2