remove ref to Game.world in Viewport.ShroudBounds

This commit is contained in:
Bob
2010-10-12 01:50:02 +13:00
parent 4cd3195f9f
commit 6bbf878314
4 changed files with 10 additions and 14 deletions

View File

@@ -75,8 +75,7 @@ namespace OpenRA.Mods.RA
public void Render( WorldRenderer wr )
{
var cliprect = Game.viewport.ShroudBounds().HasValue
? Rectangle.Intersect(Game.viewport.ShroudBounds().Value, world.Map.Bounds) : world.Map.Bounds;
var cliprect = Game.viewport.ShroudBounds( world );
cliprect = Rectangle.Intersect(Game.viewport.ViewBounds(), cliprect);
foreach (var kv in tiles)
{