From 530261068769527b000e604504aff4ee229b97a5 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Thu, 12 Dec 2024 13:53:38 +0100 Subject: [PATCH] CLIENT: Reset RF_FORCECOLOURMOD if unmodified. Same entity variable is reused during iteration. If not reset when unmodified, other entities will be tainted. --- src/cl_ents.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cl_ents.c b/src/cl_ents.c index e5867c06b..e22b89b29 100644 --- a/src/cl_ents.c +++ b/src/cl_ents.c @@ -1067,6 +1067,10 @@ void CL_LinkPacketEntities(void) ent.r_modelcolor[2] = ((float) state->colourmod[2] * 8.0f) / 256.0f; ent.renderfx |= RF_FORCECOLOURMOD; } + else + { + ent.renderfx &= ~RF_FORCECOLOURMOD; + } #endif if (ent.model->flags & EF_ROTATE)