From 453fa9e589601a990111b4645472f7b98a15b707 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 5 Oct 2005 02:08:28 +0000 Subject: [PATCH] Hexen2 effect fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1421 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index 7b7e095eb..ef2fd16d1 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -1796,8 +1796,11 @@ void CL_LinkPacketEntities (void) } else if (model->flags & EF_SPIT) { - // how the hell does this even work? - rad = -120 - (rand() % 20); + // as far as I can tell this effect inverses the light... + dclr[0] = -dclr[0]; + dclr[0] = -dclr[1]; + dclr[0] = -dclr[2]; + rad = 120 - (rand() % 20); } if (rad)