Fix damaged-building artwork and don't show healthbar for dead units (cnc critical-building state)

This commit is contained in:
Paul Chote
2010-07-30 10:06:11 +12:00
parent 98ac5a036f
commit 0580dc4adf
9 changed files with 11 additions and 23 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA.Orders
yield break;
if (underCursor.Info.Traits.Contains<RepairableBuildingInfo>()
&& underCursor.GetExtendedDamageState() != ExtendedDamageState.Undamaged)
&& underCursor.GetExtendedDamageState() < ExtendedDamageState.Undamaged)
yield return new Order("Repair", underCursor);
}
}