Merge pull request #7405 from Rydra/upstream/int2immutable

Made int2 class immutable
This commit is contained in:
Matthias Mailänder
2015-03-20 16:03:46 +01:00
11 changed files with 34 additions and 26 deletions

View File

@@ -310,8 +310,7 @@ namespace OpenRA.Mods.D2k.UtilityCommands
map = Map.FromTileset(tileSet);
map.Title = Path.GetFileNameWithoutExtension(mapFile);
map.Author = "Westwood Studios";
map.MapSize.X = mapSize.Width + 2 * MapCordonWidth;
map.MapSize.Y = mapSize.Height + 2 * MapCordonWidth;
map.MapSize = new int2(mapSize.Width + 2 * MapCordonWidth, mapSize.Height + 2 * MapCordonWidth);
map.Bounds = new Rectangle(MapCordonWidth, MapCordonWidth, mapSize.Width, mapSize.Height);
map.Smudges = Exts.Lazy(() => new List<SmudgeReference>());