selling should not cause the building to explode first.

This commit is contained in:
Chris Forbes
2010-07-30 18:39:21 +12:00
parent 3aa2bab99f
commit aba9942a85

View File

@@ -27,7 +27,6 @@ namespace OpenRA.Traits.Activities
var refundFraction = self.Info.Traits.Get<BuildingInfo>().RefundPercent * (health == null ? 1f : health.HPFraction);
self.Owner.PlayerActor.traits.Get<PlayerResources>().GiveCash((int)(refundFraction * cost));
self.Kill(self);
foreach (var ns in self.traits.WithInterface<INotifySold>())
ns.Sold(self);