- Fixed player sprites not being affected by sector light level in the classic software renderer.

This commit is contained in:
drfrag 2019-09-28 10:07:20 +02:00 committed by Christoph Oelckers
parent 67169b80e5
commit 634ef60c78

View file

@ -205,7 +205,10 @@ namespace swrenderer
int shade = LightVisibility::LightLevelToShade(lightlevel, foggy, thread->Viewport.get());
if (psprite)
{
visibility = 0;
shade -= 24 * FRACUNIT;
}
BaseColormap = basecolormap;
ColormapNum = GETPALOOKUP(visibility, shade);