From 59f0462cc1e41641258ee427c0fba54d354517d7 Mon Sep 17 00:00:00 2001 From: BjossiAlfreds Date: Thu, 14 Oct 2021 02:06:52 +0000 Subject: [PATCH] Fixed updated gunangles and gunoffset not always being sent to client --- src/server/sv_entities.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/server/sv_entities.c b/src/server/sv_entities.c index 899d6bd3..f0e29968 100644 --- a/src/server/sv_entities.c +++ b/src/server/sv_entities.c @@ -251,7 +251,15 @@ SV_WritePlayerstateToClient(client_frame_t *from, client_frame_t *to, pflags |= PS_RDFLAGS; } - if (ps->gunframe != ops->gunframe) + if ((ps->gunframe != ops->gunframe) || + /* added so weapon angle/offset update during pauseframes */ + (ps->gunoffset[0] != ops->gunoffset[0]) || + (ps->gunoffset[1] != ops->gunoffset[1]) || + (ps->gunoffset[2] != ops->gunoffset[2]) || + + (ps->gunangles[0] != ops->gunangles[0]) || + (ps->gunangles[1] != ops->gunangles[1]) || + (ps->gunangles[2] != ops->gunangles[2])) { pflags |= PS_WEAPONFRAME; }