Fix AFLD production eva (#494).

This commit is contained in:
Paul Chote
2011-01-29 13:04:26 +13:00
parent d45db9eb9c
commit 9b17bfe697
2 changed files with 3 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ namespace OpenRA.Mods.Cnc
{
public class ProductionAirdropInfo : ProductionInfo
{
public readonly string ReadyAudio = "reinfor1.aud";
public override object Create(ActorInitializer init) { return new ProductionAirdrop(this); }
}
@@ -60,6 +61,7 @@ namespace OpenRA.Mods.Cnc
rb.PlayCustomAnimRepeating(self, "idle");
self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit));
Sound.PlayToPlayer(self.Owner, (Info as ProductionAirdropInfo).ReadyAudio);
}));
a.QueueActivity(Fly.ToCell(endPos));
a.QueueActivity(new RemoveSelf());