Many bug fixes that improve the amount and accuracy of lighting. Better compatibility with detailed maps. Baked lighting has been separated from sector lighting.
v4.0159b
3/27 - adjust sprite min/max by number of sprites (optimize)
3/28 - double shadow lifespan for actors > 1/4, 1/2, 3/4 distance (optimize)
3/29 - fixed DIV/0 error line 1321
3/30 - fixed shadow generating bug for player when finishing a level
3/30 - hd_shadow.zs: int tests for distance; args[0] for isFlashlight; z calc in LightCheckSight; (bugs)
4/1 - light calculations linked to CVars (accuracy)
4/2 - fixed hdspot added hdlightsources (accuracy)
4/3 - corrected Pos.z for temp hd_lightsource & corrected LightSightCheck functions (accuracy / optimize)
4/4 - separated baked sidedef block from rl_sector_lights
4/6 - added smart lighting for brighter sector light sources
4/7 - added support for beamflashlightmod
4/8 - corrected skewness upper clamp to allow for min_area > max_area
The skewness correction ensures greater compatibility with more detailed maps (such as My House) without changing defaults. Overall this version has many bug fixes that increase the lighting accuracy. No new features except for compatibility with beamflashlight.