Actor properties consistency improved
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
|
||||
public void Tick(World world)
|
||||
{
|
||||
if (!a.IsInWorld || a.IsDead() || !a.Trait<CanPowerDown>().Disabled)
|
||||
if (!a.IsInWorld || a.IsDead || !a.Trait<CanPowerDown>().Disabled)
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
|
||||
anim.Tick();
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
circles.Play("circles");
|
||||
}
|
||||
|
||||
if (!building.IsInWorld || building.IsDead())
|
||||
if (!building.IsInWorld || building.IsDead)
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user