diff --git a/OpenRA.Game/Map/CellRegion.cs b/OpenRA.Game/Map/CellRegion.cs index e702e9db18..cb3fca8683 100644 --- a/OpenRA.Game/Map/CellRegion.cs +++ b/OpenRA.Game/Map/CellRegion.cs @@ -40,6 +40,16 @@ namespace OpenRA mapBottomRight = BottomRight.ToMPos(gridType); } + public CellRegion(MapGridType gridType, MPos topLeft, MPos bottomRight) + { + this.gridType = gridType; + mapTopLeft = topLeft; + mapBottomRight = bottomRight; + + TopLeft = topLeft.ToCPos(gridType); + BottomRight = bottomRight.ToCPos(gridType); + } + /// Expand the specified region with an additional cordon. This may expand the region outside the map borders. public static CellRegion Expand(CellRegion region, int cordon) {