eliminated some dumb stuff

This commit is contained in:
Chris Forbes
2009-12-31 13:20:20 +13:00
parent c11c4eb4a0
commit 52dea029d6
3 changed files with 16 additions and 9 deletions

View File

@@ -15,9 +15,9 @@ namespace OpenRa.Game.Traits
public void Attacking(Actor self)
{
var prefix = self.GetDamageState() == DamageState.Half ? "damaged-" : "";
Sound.Play("tslachg2.aud");
anim.PlayThen(prefix + "active", () => anim.PlayRepeating(prefix + "idle"));
anim.PlayThen(GetPrefix(self) + "active",
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
}
}
}