- fixed misplaced parenthesis.

This commit is contained in:
Christoph Oelckers 2018-09-09 19:18:22 +02:00
parent 1eb1d8d280
commit 2d53ad6f10

View file

@ -184,7 +184,7 @@ void gl_SetFog(int lightlevel, int rellight, bool fullbright, const FColormap *c
} }
else 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); float light = hw_CalcLightLevel(lightlevel, rellight, false, cmap->BlendFactor);
gl_SetShaderLight(light, lightlevel); gl_SetShaderLight(light, lightlevel);