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

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA
public override object Create(ActorInitializer init) { return new AttackGarrisoned(init.self, this); }
}
public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender, ITickRender
public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender
{
public readonly FirePort[] Ports;
@@ -183,8 +183,10 @@ namespace OpenRA.Mods.RA
yield return r;
}
public void TickRender(WorldRenderer wr, Actor self)
public override void Tick(Actor self)
{
base.Tick(self);
// Take a copy so that Tick() can remove animations
foreach (var m in muzzles.ToList())
m.Animation.Tick();