Load MapPreview data without initialising a full Map.

This commit is contained in:
Paul Chote
2016-02-06 12:37:19 +00:00
parent ab25e26312
commit 02ab54c9bc
3 changed files with 98 additions and 21 deletions

View File

@@ -168,7 +168,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
// Update the map cache so it can be loaded without restarting the game
var classification = mapDirectories[directoryDropdown.Text];
modData.MapCache[map.Uid].UpdateFromMap(map, classification);
modData.MapCache[map.Uid].UpdateFromMap(map.Container, classification, null, map.Grid.Type);
Console.WriteLine("Saved current map at {0}", combinedPath);
Ui.CloseWindow();