From 9ddb2becedfe3e6e0480e41bfd1a4d5b5cdd3e7f Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 19 Sep 2010 18:44:32 +1200 Subject: [PATCH] Apply the same to bibs and smudges --- OpenRA.Game/Traits/World/BibLayer.cs | 3 ++- OpenRA.Game/Traits/World/SmudgeLayer.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Traits/World/BibLayer.cs b/OpenRA.Game/Traits/World/BibLayer.cs index 14a2f1d9ba..f918786c24 100644 --- a/OpenRA.Game/Traits/World/BibLayer.cs +++ b/OpenRA.Game/Traits/World/BibLayer.cs @@ -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)) diff --git a/OpenRA.Game/Traits/World/SmudgeLayer.cs b/OpenRA.Game/Traits/World/SmudgeLayer.cs index 96a54e48a4..fecdfdc6b4 100644 --- a/OpenRA.Game/Traits/World/SmudgeLayer.cs +++ b/OpenRA.Game/Traits/World/SmudgeLayer.cs @@ -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))