Merge pull request #10961 from Mailaender/animate-infantry-stand

Added animation support to infantry stand sequences
This commit is contained in:
Paul Chote
2016-03-26 17:54:12 +00:00

View File

@@ -74,7 +74,10 @@ namespace OpenRA.Mods.Common.Traits
{
var sequence = DefaultAnimation.GetRandomExistingSequence(Info.StandSequences, Game.CosmeticRandom);
if (sequence != null)
DefaultAnimation.PlayFetchIndex(NormalizeInfantrySequence(self, sequence), () => 0);
{
var normalized = NormalizeInfantrySequence(self, sequence);
DefaultAnimation.PlayRepeating(normalized);
}
}
public void Created(Actor self)