Skip to content

Commit

Permalink
CLIENT: Reset RF_FORCECOLOURMOD if unmodified.
Browse files Browse the repository at this point in the history
Same entity variable is reused during iteration. If not reset when
unmodified, other entities will be tainted.
  • Loading branch information
dsvensson committed Dec 12, 2024
1 parent 3176582 commit 5302610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cl_ents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5302610

Please sign in to comment.