Fixes and cleanup

This commit is contained in:
eray orçunus
2020-03-02 03:03:39 +03:00
parent f72453d03e
commit a718e699ad
11 changed files with 122 additions and 92 deletions

View File

@@ -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;