mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
Disable effects on Actors set not to render locally
These are purely visual
This commit is contained in:
parent
d697eafbe1
commit
3d3cd88868
2 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ void FDynamicLight::Tick()
|
|||
|
||||
if (owned)
|
||||
{
|
||||
if (!target->state)
|
||||
if (!target->state || !target->ShouldRenderLocally())
|
||||
{
|
||||
Deactivate();
|
||||
return;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue