mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-30 07:31:13 +00:00
fix colormod reads for network deltas
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2094 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
96cc1e17aa
commit
3b73a69432
2 changed files with 8 additions and 1 deletions
|
@ -337,6 +337,13 @@ void CL_ParseDelta (entity_state_t *from, entity_state_t *to, int bits, qboolean
|
||||||
if (morebits & U_ABSLIGHT && cls.fteprotocolextensions & PEXT_HEXEN2)
|
if (morebits & U_ABSLIGHT && cls.fteprotocolextensions & PEXT_HEXEN2)
|
||||||
to->abslight = MSG_ReadByte();
|
to->abslight = MSG_ReadByte();
|
||||||
|
|
||||||
|
if (morebits & U_COLOURMOD && cls.fteprotocolextensions & PEXT_COLOURMOD)
|
||||||
|
{
|
||||||
|
to->colormod[0] = MSG_ReadByte();
|
||||||
|
to->colormod[1] = MSG_ReadByte();
|
||||||
|
to->colormod[2] = MSG_ReadByte();
|
||||||
|
}
|
||||||
|
|
||||||
if (morebits & U_ENTITYDBL)
|
if (morebits & U_ENTITYDBL)
|
||||||
to->number += 512;
|
to->number += 512;
|
||||||
if (morebits & U_ENTITYDBL2)
|
if (morebits & U_ENTITYDBL2)
|
||||||
|
|
|
@ -534,7 +534,7 @@ void SV_WriteDelta (entity_state_t *from, entity_state_t *to, sizebuf_t *msg, qb
|
||||||
if ( to->abslight != from->abslight && protext & PEXT_HEXEN2)
|
if ( to->abslight != from->abslight && protext & PEXT_HEXEN2)
|
||||||
evenmorebits |= U_ABSLIGHT;
|
evenmorebits |= U_ABSLIGHT;
|
||||||
|
|
||||||
if (to->colormod[0]!=32||to->colormod[1]!=32||to->colormod[2]!=32 && protext & PEXT_COLOURMOD)
|
if ((to->colormod[0]!=from->colormod[0]||to->colormod[1]!=from->colormod[1]||to->colormod[2]!=from->colormod[2]) && protext & PEXT_COLOURMOD)
|
||||||
evenmorebits |= U_COLOURMOD;
|
evenmorebits |= U_COLOURMOD;
|
||||||
|
|
||||||
if (to->dpflags != from->dpflags && protext & PEXT_DPFLAGS)
|
if (to->dpflags != from->dpflags && protext & PEXT_DPFLAGS)
|
||||||
|
|
Loading…
Reference in a new issue