Fix damaged-building artwork and don't show healthbar for dead units (cnc critical-building state)
This commit is contained in:
@@ -62,7 +62,7 @@ namespace OpenRA.Traits
|
||||
void DrawHealthBar(Actor self, float2 xy, float2 Xy)
|
||||
{
|
||||
var health = self.traits.GetOrDefault<Health>();
|
||||
if (health == null)
|
||||
if (self.IsDead() || health == null)
|
||||
return;
|
||||
|
||||
var c = Color.Gray;
|
||||
|
||||
Reference in New Issue
Block a user