use TickRender() for RenderSprites and PaletteModifier

This commit is contained in:
Matthias Mailänder
2014-07-03 20:42:37 +02:00
parent 58cb603803
commit 87fd576b26
23 changed files with 48 additions and 43 deletions

View File

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