.IsDead() includes the .Destroyed check

This commit is contained in:
Matthias Mailänder
2013-11-17 23:32:32 +01:00
parent 8a13cd6c6a
commit da235d7aee
3 changed files with 5 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ namespace OpenRA.Mods.RA.Effects
world.AddFrameEndTask(w => w.Remove(this));
show = false;
if (!self.IsInWorld || self.Destroyed || self.IsDead() || self.World.RenderPlayer == null)
if (!self.IsInWorld || self.IsDead() || self.World.RenderPlayer == null)
return;
var gps = watcher[self.World.RenderPlayer];

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Effects
public void Tick( World world )
{
if (a.Destroyed || a.IsDead() || b.GetDamageModifier(null, null) > 0)
if (a.IsDead() || b.GetDamageModifier(null, null) > 0)
world.AddFrameEndTask(w => w.Remove(this));
}