mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Should fix the cl_nopext 1 issue where entity effects do not appear on powerups.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2316 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3866a4c292
commit
4090b9985a
1 changed files with 8 additions and 2 deletions
|
@ -452,6 +452,7 @@ void SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg, qb
|
|||
#endif
|
||||
int bits;
|
||||
int i;
|
||||
int fromeffects;
|
||||
float miss;
|
||||
|
||||
static entity_state_t defaultbaseline;
|
||||
|
@ -503,9 +504,14 @@ void SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg, qb
|
|||
if ( to->frame != from->frame )
|
||||
bits |= U_FRAME;
|
||||
|
||||
if ( (to->effects&0x00ff) != (from->effects&0x00ff) )
|
||||
|
||||
if (force && !(protext & PEXT_SPAWNSTATIC2))
|
||||
fromeffects = 0; //force is true if we're going from baseline
|
||||
else //old quakeworld protocols do not include effects in the baseline
|
||||
fromeffects = from->effects; //so old clients will see the effects baseline as 0
|
||||
if ( (to->effects&0x00ff) != (fromeffects&0x00ff) )
|
||||
bits |= U_EFFECTS;
|
||||
if ( (to->effects&0xff00) != (from->effects&0xff00) )
|
||||
if ( (to->effects&0xff00) != (fromeffects&0xff00) )
|
||||
evenmorebits |= U_EFFECTS16;
|
||||
|
||||
if ( to->modelindex != from->modelindex )
|
||||
|
|
Loading…
Reference in a new issue