diff --git a/OpenRa.Game/Effects/Smoke.cs b/OpenRa.Game/Effects/Smoke.cs index 761f34527c..f1990665ea 100644 --- a/OpenRa.Game/Effects/Smoke.cs +++ b/OpenRa.Game/Effects/Smoke.cs @@ -10,17 +10,12 @@ namespace OpenRa.Game.Effects { readonly int2 pos; readonly Animation anim = new Animation("smokey"); - bool removed; public Smoke(int2 pos) { this.pos = pos; anim.PlayThen("idle", - () => - { - removed = true; - Game.world.AddFrameEndTask(w => w.Remove(this)); - }); + () => Game.world.AddFrameEndTask(w => w.Remove(this))); } public void Tick() @@ -30,8 +25,7 @@ namespace OpenRa.Game.Effects public IEnumerable> Render() { - if (!removed) - yield return Tuple.New(anim.Image, pos.ToFloat2() - .5f * anim.Image.size, 0); + yield return Tuple.New(anim.Image, pos.ToFloat2() - .5f * anim.Image.size, 0); } } }