mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
mask off non-light bits from effects in CL_NewDlight as EF_FLAG1 etc
shouldn't affect light effects.
This commit is contained in:
parent
a0b8566337
commit
a726e33bf1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue