Disable shroud in the map editor.

This commit is contained in:
Paul Chote
2015-06-07 16:11:59 +01:00
parent 486bf14669
commit 293c7fb840

View File

@@ -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;