This commit is contained in:
Chris Forbes
2010-12-20 19:38:28 +13:00
parent 2d2bb58054
commit 7d61e75862

View File

@@ -204,6 +204,7 @@ namespace OpenRA.Editor
p.Visible = true; p.Visible = true;
p.ResumeLayout(); p.ResumeLayout();
} }
pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true)); pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true));
} }
@@ -315,9 +316,8 @@ namespace OpenRA.Editor
var map = new Map(nmd.theater.SelectedItem as string); var map = new Map(nmd.theater.SelectedItem as string);
map.Resize((int)nmd.width.Value, (int)nmd.height.Value); map.Resize((int)nmd.width.Value, (int)nmd.height.Value);
map.ResizeCordon((int)nmd.cordonLeft.Value, (int)nmd.cordonTop.Value,
map.TopLeft = new int2((int)nmd.cordonLeft.Value, (int)nmd.cordonTop.Value); (int)nmd.cordonRight.Value, (int)nmd.cordonBottom.Value);
map.BottomRight = new int2((int)nmd.cordonRight.Value, (int)nmd.cordonBottom.Value);
map.Players.Add("Neutral", new PlayerReference("Neutral", Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true)); map.Players.Add("Neutral", new PlayerReference("Neutral", Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true));
NewMap(map); NewMap(map);
} }