#413 fixed
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user