This commit is contained in:
Chris Forbes
2010-08-10 21:26:50 +12:00
parent eb0c895e2c
commit e6f717ff04

View File

@@ -50,9 +50,6 @@ namespace OpenRA.Graphics
{ {
Timer.Time( "DrawRegions start" ); Timer.Time( "DrawRegions start" );
world.WorldRenderer.palette.Update(
world.WorldActor.traits.WithInterface<IPaletteModifier>());
float2 r1 = new float2(2, -2) / screenSize; float2 r1 = new float2(2, -2) / screenSize;
float2 r2 = new float2(-1, 1); float2 r2 = new float2(-1, 1);
@@ -79,6 +76,9 @@ namespace OpenRA.Graphics
public void Tick() public void Tick()
{ {
cursorFrame += 0.5f; cursorFrame += 0.5f;
Game.world.WorldRenderer.palette.Update(
Game.world.WorldActor.traits.WithInterface<IPaletteModifier>());
} }
public float2 ViewToWorld(int2 loc) public float2 ViewToWorld(int2 loc)