From f1e6f01e44fcb611bf4f54b6c94d5c5a8c32d4ef Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 5 Jul 2015 11:14:59 +0100 Subject: [PATCH] Use the standard radar shroud updating when switching to observer. --- OpenRA.Mods.Common/Widgets/RadarWidget.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/RadarWidget.cs b/OpenRA.Mods.Common/Widgets/RadarWidget.cs index cba460d644..d2a77b1d76 100644 --- a/OpenRA.Mods.Common/Widgets/RadarWidget.cs +++ b/OpenRA.Mods.Common/Widgets/RadarWidget.cs @@ -290,15 +290,12 @@ namespace OpenRA.Mods.Common.Widgets if (newRenderShroud != null) { // Redraw the full shroud sprite - using (var bitmap = Minimap.ShroudBitmap(world)) - OpenRA.Graphics.Util.FastCopyIntoSprite(shroudSprite, bitmap); + MarkShroudDirty(world.Map.CellsInsideBounds); // Update the notification binding newRenderShroud.CellsChanged += MarkShroudDirty; } - dirtyShroudCells.Clear(); - renderShroud = newRenderShroud; }