Skip to content

Commit

Permalink
- fixed wrong state being checked for dynamic light updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 3, 2021
1 parent b4d0350 commit 6bf487d
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() || (newstate && newstate->Light > 0))
if (GetInfo()->LightAssociations.Size() || (state && state->Light > 0))
{
flags8 |= MF8_RECREATELIGHTS;
Level->flags3 |= LEVEL3_LIGHTCREATED;
Expand Down

0 comments on commit 6bf487d

Please sign in to comment.