From a726e33bf1b6f0ac58f2c47677d81b037dad415a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 2 Dec 2003 23:42:09 +0000 Subject: [PATCH] mask off non-light bits from effects in CL_NewDlight as EF_FLAG1 etc shouldn't affect light effects. --- qw/source/cl_ents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qw/source/cl_ents.c b/qw/source/cl_ents.c index aa6c3c8b2..9b652be28 100644 --- a/qw/source/cl_ents.c +++ b/qw/source/cl_ents.c @@ -99,7 +99,8 @@ CL_NewDlight (int key, vec3_t org, int effects, byte glow_size, static vec3_t blue = {0.05, 0.05, 0.5}; static vec3_t purple = {0.5, 0.05, 0.5}; - if (!(effects & (EF_BLUE | EF_RED | EF_BRIGHTLIGHT | EF_DIMLIGHT))) { + effects &= EF_BLUE | EF_RED | EF_BRIGHTLIGHT | EF_DIMLIGHT; + if (!effects) { if (!glow_size) return; }