- fixed handling of states with the 'light' keyword.

This commit is contained in:
Christoph Oelckers 2021-09-24 00:01:19 +02:00
parent c13cd74766
commit 23477342c3
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
newstate = newstate->GetNextState();
} while (tics == 0);
if (GetInfo()->LightAssociations.Size())
if (GetInfo()->LightAssociations.Size() || newstate->Light > 0)
{
flags8 |= MF8_RECREATELIGHTS;
Level->flags3 |= LEVEL3_LIGHTCREATED;