mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Merge pull request #751 from BjossiAlfreds/weapframe
Fixed updated gunangles and gunoffset not always being sent to client
This commit is contained in:
commit
9de9939fe0
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue