Remove viewport editor-mode assumptions.

This commit is contained in:
Paul Chote
2015-06-16 08:16:49 +01:00
parent 6738b8b977
commit c44afc0722
3 changed files with 5 additions and 3 deletions

View File

@@ -24,7 +24,9 @@ namespace OpenRA.Graphics
theater = wr.Theater;
mapTiles = world.Map.MapTiles.Value;
terrain = new TerrainSpriteLayer(world, wr, theater.Sheet, BlendMode.Alpha, wr.Palette("terrain"), true);
terrain = new TerrainSpriteLayer(world, wr, theater.Sheet, BlendMode.Alpha,
wr.Palette("terrain"), wr.World.Type != WorldType.Editor);
foreach (var cell in world.Map.AllCells)
UpdateCell(cell);