Do not use the map's rules when rendering the minimap in the map chooser

Using the mod's rules is *a lot* faster because we don't have to load
each map's rules.
This commit is contained in:
Pavlos Touboulidis
2014-05-14 23:56:00 +03:00
parent ca44be7b2e
commit df6159f12b
4 changed files with 12 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Editor
{
MakeDirty();
var tileSet = Program.Rules.TileSets[surface1.Map.Tileset];
miniMapBox.Image = Minimap.AddStaticResources(tileSet, surface1.Map, Minimap.TerrainBitmap(tileSet, surface1.Map, true));
miniMapBox.Image = Minimap.RenderMapPreview(tileSet, surface1.Map, true);
cashToolStripStatusLabel.Text = CalculateTotalResource().ToString();
}
@@ -288,7 +288,7 @@ namespace OpenRA.Editor
p.ResumeLayout();
}
miniMapBox.Image = Minimap.AddStaticResources(tileset, surface1.Map, Minimap.TerrainBitmap(tileset, surface1.Map, true));
miniMapBox.Image = Minimap.RenderMapPreview(tileset, surface1.Map, true);
propertiesToolStripMenuItem.Enabled = true;
toolStripMenuItemProperties.Enabled = true;