Skip to content

Commit

Permalink
- fixed handling of states with the 'light' keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 23, 2021
1 parent c13cd74 commit 2347734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_mobj.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 2347734

Please sign in to comment.