To go along with introducing the 'cloaked hbox', ensure that the cloak is disabled if at low power.

This commit is contained in:
earthpig
2012-05-04 23:48:28 -07:00
committed by Chris Forbes
parent 8c218b67ab
commit f0001856bc

View File

@@ -81,6 +81,8 @@ namespace OpenRA.Mods.RA
if (remainingTime > 0 && canCloak) if (remainingTime > 0 && canCloak)
if (--remainingTime <= 0) if (--remainingTime <= 0)
Sound.Play(info.CloakSound, self.CenterLocation); Sound.Play(info.CloakSound, self.CenterLocation);
if (self.IsDisabled())
Uncloak();
} }
public bool IsVisible(Actor self) public bool IsVisible(Actor self)