power tracks damaged/destroyed correctly

This commit is contained in:
Chris Forbes
2009-12-08 20:33:54 +13:00
parent 073cdc202d
commit bcea1f01b0
2 changed files with 24 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
namespace OpenRa.Game.Traits
{
class Building : ITick, INotifyBuildComplete
class Building : ITick
{
public readonly BuildingInfo unitInfo;
@@ -19,11 +19,5 @@ namespace OpenRa.Game.Traits
first = false;
}
public void BuildingComplete(Actor self)
{
if (self.Owner != null)
self.Owner.ChangePower(unitInfo.Power);
}
}
}