mask off non-light bits from effects in CL_NewDlight as EF_FLAG1 etc

shouldn't affect light effects.
This commit is contained in:
Bill Currie 2003-12-02 23:42:09 +00:00
parent a0b8566337
commit a726e33bf1
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}