repairing buildings mostly complete

This commit is contained in:
Alli
2010-01-02 17:20:08 +13:00
parent a54909cdaf
commit 3b53f692df
4 changed files with 60 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ namespace OpenRa.Game.Orders
var building = underCursor != null ? underCursor.Info as BuildingInfo : null;
if (building == null || !building.Repairable)
if (building == null || !building.Repairable || underCursor.Health == building.Strength)
{
yield return new Order("NoRepair", Game.LocalPlayer.PlayerActor, null, int2.Zero, null);
yield break;