]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
entcs: save some bandwidth by scaling angles.y even more
authorterencehill <piuntn@gmail.com>
Wed, 30 Jan 2019 17:32:21 +0000 (18:32 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 30 Jan 2019 17:32:21 +0000 (18:32 +0100)
qcsrc/common/ent_cs.qc

index ef028c9a20deb1987650b29ec4197d2a9180880d..e0d983b963e1bb7def1c228398325af687541e20 100644 (file)
@@ -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; })