From 61e548151b57e35ae0033443f28e66027e8934b9 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 23 Sep 2012 18:00:06 +1200 Subject: [PATCH] clear queue-per-building production queue on mcv repack --- OpenRA.Mods.RA/Player/ProductionQueue.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index 87b12c1075..cdcf526ec8 100755 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA public virtual object Create(ActorInitializer init) { return new ProductionQueue(init.self, init.self.Owner.PlayerActor, this); } } - public class ProductionQueue : IResolveOrder, ITick, ITechTreeElement, INotifyCapture, INotifyKilled, INotifySold, ISync + public class ProductionQueue : IResolveOrder, ITick, ITechTreeElement, INotifyCapture, INotifyKilled, INotifySold, ISync, INotifyTransform { public readonly Actor self; public ProductionQueueInfo Info; @@ -94,6 +94,7 @@ namespace OpenRA.Mods.RA public void Killed(Actor killed, AttackInfo e) { if (killed == self) ClearQueue(); } public void Selling(Actor self) {} public void Sold(Actor self) { ClearQueue(); } + public void OnTransform(Actor self) { ClearQueue(); } Dictionary InitTech(Actor playerActor) {