fix perf in ShroudRenderer

This commit is contained in:
Bob
2010-09-24 17:14:34 +12:00
parent 6dd03bb339
commit 7bf4cb85fa
3 changed files with 9 additions and 4 deletions

View File

@@ -151,7 +151,7 @@ namespace OpenRA
var minx = clipRect.Left;
var maxx = clipRect.Right;
var shroudPalette = "fog";
var shroudPalette = Game.world.WorldRenderer.GetPaletteIndex("fog");
for (var j = miny; j < maxy; j++)
{
@@ -183,7 +183,7 @@ namespace OpenRA
new float2(Game.CellSize * (maxx - starti), Game.CellSize));
}
shroudPalette = "shroud";
shroudPalette = Game.world.WorldRenderer.GetPaletteIndex("shroud");
for (var j = miny; j < maxy; j++)
{