- Exhumed: avoid shade hacks with palette emulation on.

This code only makes sense with true color rendering.
This commit is contained in:
Christoph Oelckers 2023-01-28 11:44:05 +01:00
parent fc547f5ada
commit 432021b8e7

View file

@ -110,7 +110,7 @@ static void analyzesprites(tspriteArray& tsprites, const DVector3& view, double
pTSprite->pos.Z -= nTileY;
}
if (pTSprite->pal == 4 && pTSprite->shade >= numshades) pTSprite->shade = numshades - 1;
if (pTSprite->pal == 4 && pTSprite->shade >= numshades && !hw_int_useindexedcolortextures) pTSprite->shade = numshades - 1;
if (pActor->spr.statnum > 0)
{