Skip to content

Commit

Permalink
Disable effects on Actors set not to render locally
Browse files Browse the repository at this point in the history
These are purely visual
  • Loading branch information
Boondorl authored and madame-rachelle committed Jul 31, 2024
1 parent d697eaf commit 3d3cd88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/playsim/a_dynlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void FDynamicLight::Tick()

if (owned)
{
if (!target->state)
if (!target->state || !target->ShouldRenderLocally())
{
Deactivate();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/playsim/dthinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
if (dolights) ac->SetDynamicLights();
}
// This was merged from P_RunEffects to eliminate the costly duplicate ThinkerIterator loop.
if ((ac->effects || ac->fountaincolor) && !Level->isFrozen())
if ((ac->effects || ac->fountaincolor) && ac->ShouldRenderLocally() && !Level->isFrozen())
{
P_RunEffect(ac, ac->effects);
}
Expand Down

0 comments on commit 3d3cd88

Please sign in to comment.