moved Game.palette into WorldRenderer

This commit is contained in:
Bob
2010-01-21 12:31:44 +13:00
parent d07b782044
commit d7be2b0dd3
4 changed files with 19 additions and 17 deletions

View File

@@ -44,6 +44,9 @@ namespace OpenRa.Graphics
public void DrawRegions()
{
Game.world.WorldRenderer.palette.Update(Game.world.Actors.SelectMany(
a => a.traits.WithInterface<IPaletteModifier>()));
float2 r1 = new float2(2, -2) / screenSize;
float2 r2 = new float2(-1, 1);