Remove MapPreview.Map.
This commit is contained in:
@@ -174,7 +174,8 @@ namespace OpenRA
|
||||
if (bitmap == null)
|
||||
{
|
||||
createdPreview = true;
|
||||
bitmap = Minimap.RenderMapPreview(modData.DefaultRules.TileSets[p.Map.Tileset], p.Map, modData.DefaultRules, true);
|
||||
var map = new Map(p.Path);
|
||||
bitmap = Minimap.RenderMapPreview(modData.DefaultRules.TileSets[map.Tileset], map, modData.DefaultRules, true);
|
||||
}
|
||||
|
||||
Game.RunAfterTick(() =>
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace OpenRA
|
||||
public MapGridType GridType { get; private set; }
|
||||
public Rectangle Bounds { get; private set; }
|
||||
public Bitmap CustomPreview { get; private set; }
|
||||
public Map Map { get; private set; }
|
||||
public MapStatus Status { get; private set; }
|
||||
public MapClassification Class { get; private set; }
|
||||
public MapVisibility Visibility { get; private set; }
|
||||
@@ -117,7 +116,6 @@ namespace OpenRA
|
||||
|
||||
public void UpdateFromMap(Map m, MapClassification classification)
|
||||
{
|
||||
Map = m;
|
||||
Path = m.Path;
|
||||
Title = m.Title;
|
||||
Type = m.Type;
|
||||
|
||||
Reference in New Issue
Block a user