Disable effects on Actors set not to render locally

These are purely visual
This commit is contained in:
Boondorl 2024-07-31 01:01:37 -04:00 committed by Rachael Alexanderson
parent d697eafbe1
commit 3d3cd88868
2 changed files with 2 additions and 2 deletions

View file

@ -255,7 +255,7 @@ void FDynamicLight::Tick()
if (owned)
{
if (!target->state)
if (!target->state || !target->ShouldRenderLocally())
{
Deactivate();
return;

View file

@ -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);
}