From eba764112593708b750c424b7f7844842627d165 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 17 Mar 2011 22:08:53 +1300 Subject: [PATCH] remove old Sell handler from Building --- OpenRA.Mods.RA/Buildings/Building.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/OpenRA.Mods.RA/Buildings/Building.cs b/OpenRA.Mods.RA/Buildings/Building.cs index 2e2331d274..e3d023f19f 100755 --- a/OpenRA.Mods.RA/Buildings/Building.cs +++ b/OpenRA.Mods.RA/Buildings/Building.cs @@ -63,7 +63,7 @@ namespace OpenRA.Mods.RA.Buildings } } - public class Building : INotifyDamage, IResolveOrder, IOccupySpace, INotifyCapture, ISync + public class Building : INotifyDamage, IOccupySpace, INotifyCapture, ISync { readonly Actor self; public readonly BuildingInfo Info; @@ -98,15 +98,6 @@ namespace OpenRA.Mods.RA.Buildings PlayerPower.UpdateActor(self, GetPowerUsage()); } - public void ResolveOrder(Actor self, Order order) - { - if (order.OrderString == "Sell") - { - self.CancelActivity(); - self.QueueActivity(new Sell()); - } - } - public int2 TopLeft { get { return topLeft; }