From 82a8fd329ee963931ee75c3244a7666f9dba815f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 5 Jul 2014 11:02:08 +0200 Subject: [PATCH] don't play active animation when we sell it --- OpenRA.Mods.RA/Render/WithActiveAnimation.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Render/WithActiveAnimation.cs b/OpenRA.Mods.RA/Render/WithActiveAnimation.cs index cd8dbe29f8..05a870a7fc 100644 --- a/OpenRA.Mods.RA/Render/WithActiveAnimation.cs +++ b/OpenRA.Mods.RA/Render/WithActiveAnimation.cs @@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA.Render public object Create(ActorInitializer init) { return new WithActiveAnimation(init.self, this); } } - public class WithActiveAnimation : ITickRender, INotifyBuildComplete + public class WithActiveAnimation : ITickRender, INotifyBuildComplete, INotifySold { readonly IEnumerable disabled; readonly WithActiveAnimationInfo info; @@ -61,5 +61,11 @@ namespace OpenRA.Mods.RA.Render { buildComplete = true; } + + public void Selling(Actor self) + { + buildComplete = false; + } + public void Sold(Actor self) { } } } \ No newline at end of file