- Fixed: side_t::GetLightLevel relied on the global 'linedef' variable for

automatic fake contrast.
- Changed: Fake contrast now uses the WALLF_AUTOCONTRAST globally instead
  of manipulating the sides' light values individually. This allows changing
  the fake contrast at run time and also allows adding individual relative
  lighting on top of it which is a planned UDMF feature.


SVN r991 (trunk)
This commit is contained in:
Christoph Oelckers 2008-05-23 07:54:09 +00:00
commit 5574aaca15
6 changed files with 27 additions and 29 deletions

View file

@ -2373,8 +2373,8 @@ void G_InitLevelLocals ()
}
level.airsupply = info->airsupply*TICRATE;
level.outsidefog = info->outsidefog;
level.WallVertLight = info->WallVertLight;
level.WallHorizLight = info->WallHorizLight;
level.WallVertLight = info->WallVertLight*2;
level.WallHorizLight = info->WallHorizLight*2;
if (info->gravity != 0.f)
{
level.gravity = info->gravity * 35/TICRATE;