- Added a new UDMF sidedef flag: lightfog.

SVN r3933 (trunk)
This commit is contained in:
Randy Heit 2012-11-03 02:02:42 +00:00
commit 0f0dcc08a2
5 changed files with 13 additions and 4 deletions

View file

@ -996,10 +996,10 @@ int side_t::GetLightLevel (bool foggy, int baselight, bool noabsolute, int *pfak
baselight += rel;
}
}
if (!(Flags & WALLF_ABSLIGHTING))
{
baselight += this->Light;
}
}
if (!(Flags & WALLF_ABSLIGHTING) && (!foggy || (Flags & WALLF_LIGHT_FOG)))
{
baselight += this->Light;
}
return baselight;
}