- softpoly: fix sprites still lit when dynlights off

This commit is contained in:
Magnus Norddahl 2018-07-01 20:53:50 +02:00
parent 6d6ee1281e
commit 2e5b7a7d8b

View file

@ -372,7 +372,7 @@ FTexture *RenderPolySprite::GetSpriteTexture(AActor *thing, /*out*/ bool &flipX)
void RenderPolySprite::SetDynlight(AActor *thing, PolyDrawArgs &args)
{
bool fullbrightSprite = ((thing->renderflags & RF_FULLBRIGHT) || (thing->flags5 & MF5_BRIGHT));
if (fullbrightSprite)
if (fullbrightSprite || !r_dynlights)
{
args.SetDynLightColor(0);
return;