Remove hardcoded limitation on mapsize everywhere except minimap

This commit is contained in:
Paul Chote
2010-03-04 19:35:21 +13:00
parent 724928cf56
commit 65783c369a
7 changed files with 51 additions and 32 deletions

View File

@@ -256,6 +256,11 @@ namespace OpenRA.FileFormats
}
}
public bool IsInMap(int2 xy)
{
return IsInMap(xy.X,xy.Y);
}
public bool IsInMap(int x, int y)
{
return (x >= XOffset && y >= YOffset && x < XOffset + Width && y < YOffset + Height);