From 484d4d216e76b84be314dc180c6fb6ee005bade8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 6 Dec 2018 07:11:04 +0000 Subject: [PATCH] Fix green/etc fullbrights git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5359 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index f3d87f455..769e6332f 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -4201,6 +4201,10 @@ void CL_LinkPacketEntities (void) ent->shaderRGBAf[1] = (state->colormod[1]*8.0f)/256; ent->shaderRGBAf[2] = (state->colormod[2]*8.0f)/256; } + if (state->colormod[0] == 32 && state->colormod[1] == 32 && state->colormod[2] == 32) + VectorSet(ent->glowmod, 1, 1, 1); + else + VectorScale(state->glowmod, 1/255.0, ent->glowmod); #ifdef PEXT_FATNESS //set trans