Only render shroud/ore that is in the current viewport

This commit is contained in:
Paul Chote
2010-09-19 18:33:47 +12:00
parent fef291a27e
commit 23da8a24bd
3 changed files with 12 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ namespace OpenRA
}
var clipRect = Bounds.HasValue ? Rectangle.Intersect(Bounds.Value, map.Bounds) : map.Bounds;
clipRect = Rectangle.Intersect(Game.viewport.ViewBounds(), clipRect);
var miny = clipRect.Top;
var maxy = clipRect.Bottom;
var minx = clipRect.Left;