- sprite lightlevel cleanup and fixes.

* consolidated the getter functions on the game data side
* better handling of per-sprite lighting with fog
* allow negative values for additive per-sprite lighting.
* also fixed return type of UpdateWaterDepth.
This commit is contained in:
Christoph Oelckers 2022-06-01 08:35:02 +02:00
commit 344c6348fd
12 changed files with 312 additions and 46 deletions

View file

@ -4272,7 +4272,7 @@ void AActor::CheckSectorTransition(sector_t *oldsec)
//
//==========================================================================
int AActor::UpdateWaterDepth(bool splash)
double AActor::UpdateWaterDepth(bool splash)
{
double fh = -FLT_MAX;
bool reset = false;