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

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.RA
public object Create(ActorInitializer init) { return new WaterPaletteRotation(init.world, this); }
}
class WaterPaletteRotation : ITickRender, IPaletteModifier
class WaterPaletteRotation : ITick, IPaletteModifier
{
float t = 0;
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA
this.info = info;
}
public void TickRender(WorldRenderer wr, Actor self) { t += .25f; }
public void Tick(Actor self) { t += .25f; }
uint[] temp = new uint[7]; /* allocating this on the fly actually hurts our profile */