From f98f704f48db448c16308d7b161106691b0b9be8 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Wed, 15 Jan 2025 15:18:59 +0100 Subject: [PATCH] SERVER: Don't write colourmod for players. --- src/sv_ents.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/sv_ents.c b/src/sv_ents.c index 63eb8d03..7cc89a68 100644 --- a/src/sv_ents.c +++ b/src/sv_ents.c @@ -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 @@ -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) { @@ -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 } }