From 293c7fb840e84ce9b28dff285207ea3829a8408c Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 7 Jun 2015 16:11:59 +0100 Subject: [PATCH] Disable shroud in the map editor. --- OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs index 12b84a31be..c08c3a010e 100644 --- a/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs +++ b/OpenRA.Mods.Common/Traits/World/ShroudRenderer.cs @@ -164,7 +164,13 @@ namespace OpenRA.Mods.Common.Traits } DirtyCells(map.AllCells); - visibleUnderShroud = map.Contains; + + // All tiles are visible in the editor + if (w.Type == WorldType.Editor) + visibleUnderShroud = _ => true; + else + visibleUnderShroud = map.Contains; + visibleUnderFog = map.Contains; var shroudSheet = shroudSprites[0].Sheet;