projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb7abbb
)
Team radar: make teammate arrow icon rotation smoother
author
terencehill <piuntn@gmail.com>
Tue, 8 Nov 2022 14:09:24 +0000
(15:09 +0100)
committer
terencehill <piuntn@gmail.com>
Tue, 8 Nov 2022 14:09:24 +0000
(15:09 +0100)
qcsrc/common/ent_cs.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/ent_cs.qc
b/qcsrc/common/ent_cs.qc
index 5366371458fe52fadb86e3c2d7fc3dd8b2ca44db..f8e1941f59fc2608e2fb2c0bdf2d1a4d28115992 100644
(file)
--- a/
qcsrc/common/ent_cs.qc
+++ b/
qcsrc/common/ent_cs.qc
@@
-115,7
+115,7
@@
ENTCS_PROP(ORIGIN, false, origin, origin, ENTCS_SET_NORMAL,
{ WriteVector(chan, ent.origin); },
{ ent.has_sv_origin = true; vector v = ReadVector(); setorigin(ent, v); })
-#define DEC_FACTOR (360 /
32
)
+#define DEC_FACTOR (360 /
64
)
ENTCS_PROP_CODED(ANGLES, false, angles_y, 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; })