Skip to content

Commit

Permalink
SERVER: Mark trans/colormod as required if requested and set.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Jan 15, 2025
1 parent f98f704 commit f971725
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/sv_ents.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,19 @@ void SV_WriteDelta(client_t* client, entity_state_t *from, entity_state_t *to, s
}

#ifdef U_FTE_TRANS
if (to->trans != from->trans && (fte_extensions & FTE_PEXT_TRANS))
evenmorebits |= U_FTE_TRANS;
if (to->trans != from->trans && (fte_extensions & FTE_PEXT_TRANS)) {
evenmorebits |= U_FTE_TRANS;
required_extensions |= FTE_PEXT_TRANS;
}
#endif

#ifdef U_FTE_COLOURMOD
if ((to->colourmod[0] != from->colourmod[0] ||
to->colourmod[1] != from->colourmod[1] ||
to->colourmod[2] != from->colourmod[2]) && (fte_extensions & FTE_PEXT_COLOURMOD))
to->colourmod[2] != from->colourmod[2]) && (fte_extensions & FTE_PEXT_COLOURMOD)) {
evenmorebits |= U_FTE_COLOURMOD;
required_extensions |= FTE_PEXT_COLOURMOD;
}
#endif

if (evenmorebits&0xff00)
Expand Down

0 comments on commit f971725

Please sign in to comment.