use TickRender() for RenderSprites and PaletteModifier
This commit is contained in:
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
class ChronoshiftPaletteEffectInfo : TraitInfo<ChronoshiftPaletteEffect> { }
|
||||
|
||||
public class ChronoshiftPaletteEffect : IPaletteModifier, ITick
|
||||
public class ChronoshiftPaletteEffect : IPaletteModifier, ITickRender
|
||||
{
|
||||
const int chronoEffectLength = 60;
|
||||
int remainingFrames;
|
||||
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA
|
||||
remainingFrames = chronoEffectLength;
|
||||
}
|
||||
|
||||
public void Tick(Actor self)
|
||||
public void TickRender(WorldRenderer wr, Actor self)
|
||||
{
|
||||
if (remainingFrames > 0)
|
||||
remainingFrames--;
|
||||
|
||||
Reference in New Issue
Block a user