generate a neutral player

This commit is contained in:
Chris Forbes
2010-08-01 18:38:38 +12:00
parent 968387eab2
commit 9bd808fcb8

View File

@@ -425,6 +425,9 @@ namespace OpenRA.Editor
var map = LegacyMapImporter.Import(ofd.FileName);
map.Package = new Folder(savePath);
map.Players.Add("Neutral", new PlayerReference("Neutral",
Rules.Info["world"].Traits.WithInterface<CountryInfo>().First().Race, true, true));
map.Save(savePath);
LoadMap(savePath);
loadedMapName = null; /* editor needs to think this hasnt been saved */