Allow maps to be saved during initialisation.

This commit is contained in:
Paul Chote
2013-12-08 10:38:35 +13:00
parent 28cf6d36f4
commit f5f6f1e7aa
3 changed files with 10 additions and 14 deletions

View File

@@ -393,7 +393,8 @@ namespace OpenRA.Editor
if (DialogResult.OK == nmd.ShowDialog())
{
var map = Map.FromTileset(nmd.TheaterBox.SelectedItem as string);
var tileset = OpenRA.Rules.TileSets[nmd.TheaterBox.SelectedItem as string];
var map = Map.FromTileset(tileset);
map.Resize((int)nmd.MapWidth.Value, (int)nmd.MapHeight.Value);
map.ResizeCordon((int)nmd.CordonLeft.Value, (int)nmd.CordonTop.Value,