diff options
-rw-r--r-- | src/renderergl1/tr_flares.c | 4 | ||||
-rw-r--r-- | src/renderergl2/tr_flares.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/renderergl1/tr_flares.c b/src/renderergl1/tr_flares.c index 310f501a..579bdf9c 100644 --- a/src/renderergl1/tr_flares.c +++ b/src/renderergl1/tr_flares.c @@ -353,8 +353,8 @@ void RB_RenderFlare( flare_t *f ) { VectorScale(f->color, f->drawIntensity * intensity, color); -// Calculations for fogging - if(tr.world && f->fogNum < tr.world->numfogs) + // Calculations for fogging + if(tr.world && f->fogNum > 0 && f->fogNum < tr.world->numfogs) { tess.numVertexes = 1; VectorCopy(f->origin, tess.xyz[0]); diff --git a/src/renderergl2/tr_flares.c b/src/renderergl2/tr_flares.c index 1c55bf10..f097c51e 100644 --- a/src/renderergl2/tr_flares.c +++ b/src/renderergl2/tr_flares.c @@ -353,8 +353,8 @@ void RB_RenderFlare( flare_t *f ) { VectorScale(f->color, f->drawIntensity * intensity, color); -// Calculations for fogging - if(tr.world && f->fogNum < tr.world->numfogs) + // Calculations for fogging + if(tr.world && f->fogNum > 0 && f->fogNum < tr.world->numfogs) { tess.numVertexes = 1; VectorCopy(f->origin, tess.xyz[0]); |