- Hack for Exhumed: palette 4 does not fade to black so sprites should not have shades above numshades.

The new renderer will treat such shades as completely black to ensure proper rendering of shadows - but for this palette this must be skipped.
This commit is contained in:
Christoph Oelckers 2021-12-27 10:29:09 +01:00
parent ce1daa82c2
commit 913f6e713d

View file

@ -121,6 +121,8 @@ static void analyzesprites(tspritetype* tsprite, int& spritesortcnt, int x, int
pTSprite->pos.Z -= nTileY;
}
if (pTSprite->pal == 4 && pTSprite->shade >= numshades) pTSprite->shade = numshades - 1;
if (pActor->spr.statnum > 0)
{
RunListEvent ev{};