Use the standard radar shroud updating when switching to observer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user