automatically fix open areas

and don't hard-code the tiles no more
This commit is contained in:
Matthias Mailänder
2014-01-03 16:46:38 +01:00
parent 9cea5f96cd
commit c6d9574d52
11 changed files with 215 additions and 19 deletions

View File

@@ -342,6 +342,7 @@ namespace OpenRA.Utility
var map = LegacyMapImporter.Import(filename, e => Console.WriteLine(e));
map.RequiresMod = mod;
map.MakeDefaultPlayers();
map.FixOpenAreas();
var dest = map.Title + ".oramap";
map.Save(dest);
Console.WriteLine(dest + " saved.");