Apply the same to bibs and smudges

This commit is contained in:
Paul Chote
2010-09-19 18:44:32 +12:00
committed by Chris Forbes
parent 1e758ec3e0
commit 9ddb2beced
2 changed files with 3 additions and 2 deletions

View File

@@ -75,7 +75,8 @@ namespace OpenRA.Traits
{
var cliprect = Game.viewport.ShroudBounds().HasValue
? Rectangle.Intersect(Game.viewport.ShroudBounds().Value, world.Map.Bounds) : world.Map.Bounds;
cliprect = Rectangle.Intersect(Game.viewport.ViewBounds(), cliprect);
foreach (var kv in tiles)
{
if (!cliprect.Contains(kv.Key.X, kv.Key.Y))

View File

@@ -76,7 +76,7 @@ namespace OpenRA.Traits
{
var cliprect = Game.viewport.ShroudBounds().HasValue
? Rectangle.Intersect(Game.viewport.ShroudBounds().Value, world.Map.Bounds) : world.Map.Bounds;
cliprect = Rectangle.Intersect(Game.viewport.ViewBounds(), cliprect);
foreach (var kv in tiles)
{
if (!cliprect.Contains(kv.Key.X,kv.Key.Y))