- 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

View file

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