Revert "use TickRender() for RenderSprites and PaletteModifier"

This reverts commit 87fd576b26.
This commit is contained in:
Paul Chote
2014-07-08 10:44:36 +12:00
parent 802b6a652c
commit 5650d5fc98
25 changed files with 48 additions and 56 deletions

View File

@@ -9,7 +9,6 @@
#endregion
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Traits;
namespace OpenRA.Mods.RA.Render
@@ -35,13 +34,13 @@ namespace OpenRA.Mods.RA.Render
.Single(a => a.Info.Name == info.Armament);
}
public override void TickRender(WorldRenderer wr, Actor self)
public override void Tick(Actor self)
{
var sequence = (armament.IsReloading ? "empty-" : "") + (attack.IsAttacking ? "aim" : "idle");
if (sequence != DefaultAnimation.CurrentSequence.Name)
DefaultAnimation.ReplaceAnim(sequence);
base.TickRender(wr, self);
base.Tick(self);
}
}
}