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:
TimeServ 2006-03-12 06:23:52 +00:00
parent 96cc1e17aa
commit 3b73a69432
2 changed files with 8 additions and 1 deletions

View file

@ -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)
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)
to->number += 512;
if (morebits & U_ENTITYDBL2)

View file

@ -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)
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;
if (to->dpflags != from->dpflags && protext & PEXT_DPFLAGS)