From a718e699ad3666f7309d7d922f929e9ec52d96d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Mon, 2 Mar 2020 03:03:39 +0300 Subject: Fixes and cleanup --- src/core/FileLoader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/FileLoader.cpp') diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index b49fccbb..6305bf33 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -952,9 +952,9 @@ CFileLoader::Load2dEffect(const char *line) effect->light.lightType = lightType; effect->light.roadReflection = roadReflection; effect->light.flareType = flare; - // TODO: check out the flags - if(flags & 4) - flags &= ~2; + + if(flags & LIGHTFLAG_FOG_ALWAYS) + flags &= ~LIGHTFLAG_FOG_NORMAL; effect->light.flags = flags; break; -- cgit v1.2.3