Fix make animations.

This commit is contained in:
Paul Chote
2014-07-08 16:50:02 +12:00
parent 5650d5fc98
commit 2b91a2363b
5 changed files with 39 additions and 48 deletions

View File

@@ -69,12 +69,6 @@ namespace OpenRA.Graphics
return Render(pos, WVec.Zero, 0, palette, 1f);
}
public void Initialize(string sequenceName)
{
CurrentSequence = sequenceProvider.GetSequence(name, sequenceName);
tickAlways = true;
}
public void Play(string sequenceName)
{
PlayThen(sequenceName, null);

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Traits
public RenderSimple(Actor self)
: this(self, MakeFacingFunc(self))
{
DefaultAnimation.PlayRepeating("idle");
DefaultAnimation.PlayRepeating(NormalizeSequence(self, "idle"));
self.Trait<IBodyOrientation>().SetAutodetectedFacings(DefaultAnimation.CurrentSequence.Facings);
}