From: terencehill Date: Wed, 30 Jan 2019 17:32:21 +0000 (+0100) Subject: entcs: save some bandwidth by scaling angles.y even more X-Git-Tag: xonotic-v0.8.5~1627 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=188fb0a8c28610327c5abda203eeb0f7b2ffec93;hp=5e4b14b3bcee54f32291df77f5cd82ffd4a1f7c3 entcs: save some bandwidth by scaling angles.y even more --- diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index ef028c9a20..e0d983b963 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -88,7 +88,7 @@ ENTCS_PROP(ORIGIN, false, origin, ENTCS_SET_NORMAL, { WriteVector(chan, ent.origin); }, { ent.has_sv_origin = true; vector v = ReadVector(); setorigin(ent, v); }) -#define DEC_FACTOR (360 / 256) +#define DEC_FACTOR (360 / 32) ENTCS_PROP_CODED(ANGLES, false, angles_y, ENTCS_SET_NORMAL, DEC_FACTOR, { WriteByte(chan, ent.angles.y / DEC_FACTOR); }, { vector v = '0 0 0'; v.y = ReadByte() * DEC_FACTOR; ent.angles = v; })