Skip to content

Commit

Permalink
SERVER: Don't write colourmod for players.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Jan 15, 2025
1 parent 6b1f7b0 commit f98f704
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/sv_ents.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,14 +644,6 @@ static void SV_WritePlayersToClient (client_t *client, client_frame_t *frame, by
pflags |= PF_TRANS_Z;
}
#endif
#ifdef FTE_PEXT_COLOURMOD
if (client->fteprotocolextensions & FTE_PEXT_COLOURMOD &&
(ent->xv.colourmod[0] > 0.0f && ent->xv.colourmod[1] > 0.0f && ent->xv.colourmod[2] > 0.0f) &&
!(ent->xv.colourmod[0] == 1.0f && ent->xv.colourmod[1] == 1.0f && ent->xv.colourmod[2] == 1.0f))
{
pflags |= PF_COLOURMOD;
}
#endif

// Z_EXT_PM_TYPE protocol extension
// encode pm_type and jump_held into pm_code
Expand Down Expand Up @@ -704,8 +696,8 @@ static void SV_WritePlayersToClient (client_t *client, client_frame_t *frame, by
MSG_WriteByte (msg, svc_playerinfo);
MSG_WriteByte (msg, j);

#if defined(FTE_PEXT_TRANS) && defined(FTE_PEXT_COLOURMOD)
if (client->fteprotocolextensions & (FTE_PEXT_TRANS | FTE_PEXT_COLOURMOD))
#if defined(FTE_PEXT_TRANS)
if (client->fteprotocolextensions & FTE_PEXT_TRANS)
{
if (pflags & 0xff0000)
{
Expand Down Expand Up @@ -799,14 +791,6 @@ static void SV_WritePlayersToClient (client_t *client, client_frame_t *frame, by
{
MSG_WriteByte (msg, bound(1, (byte)(ent->xv.alpha * 254.0f), 254));
}
#endif
#ifdef FTE_PEXT_COLOURMOD
if (pflags & PF_COLOURMOD)
{
MSG_WriteByte(msg, bound(0, ent->xv.colourmod[0] * (256.0f / 8.0f), 255));
MSG_WriteByte(msg, bound(0, ent->xv.colourmod[1] * (256.0f / 8.0f), 255));
MSG_WriteByte(msg, bound(0, ent->xv.colourmod[2] * (256.0f / 8.0f), 255));
}
#endif
}
}
Expand Down

0 comments on commit f98f704

Please sign in to comment.