Drop TopLeft and BottomRight from MapFormat 5. Use Bounds directly.

This commit is contained in:
Paul Chote
2011-02-11 11:01:06 +13:00
parent 7332c5a6df
commit 9407c55262
4 changed files with 23 additions and 15 deletions

View File

@@ -236,8 +236,7 @@ namespace OpenRA
"Author",
"Tileset",
"MapSize",
"TopLeft",
"BottomRight",
"Bounds",
"UseAsShellmap",
"Type",
"StartPoints"
@@ -394,9 +393,7 @@ namespace OpenRA
public void ResizeCordon(int left, int top, int right, int bottom)
{
TopLeft = new int2(left, top);
BottomRight = new int2(right, bottom);
Bounds = Rectangle.FromLTRB(TopLeft.X, TopLeft.Y, BottomRight.X, BottomRight.Y);
Bounds = Rectangle.FromLTRB(left, top, right, bottom);
}
}
}