don't play active animation when we sell it

This commit is contained in:
Matthias Mailänder
2014-07-05 11:02:08 +02:00
parent 69209cd340
commit 82a8fd329e

View File

@@ -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<IDisable> 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) { }
}
}