From 2d53ad6f1081f93787aff007c9dca330f41c2c04 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Sep 2018 19:18:22 +0200 Subject: [PATCH] - fixed misplaced parenthesis. --- src/gl/renderer/gl_lightdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_lightdata.cpp b/src/gl/renderer/gl_lightdata.cpp index 635e6b292b..4668af2611 100644 --- a/src/gl/renderer/gl_lightdata.cpp +++ b/src/gl/renderer/gl_lightdata.cpp @@ -184,7 +184,7 @@ void gl_SetFog(int lightlevel, int rellight, bool fullbright, const FColormap *c } else { - if ((level.lightmode == 2 || (level.lightmode == 8) && cmap->BlendFactor > 0) && fogcolor == 0) + if ((level.lightmode == 2 || (level.lightmode == 8 && cmap->BlendFactor > 0)) && fogcolor == 0) { float light = hw_CalcLightLevel(lightlevel, rellight, false, cmap->BlendFactor); gl_SetShaderLight(light, lightlevel);