Begin unhardcoding 128 map size; Trees; Waypoints

This commit is contained in:
Paul Chote
2010-03-03 09:42:45 +13:00
parent f1211e4414
commit ae2bbae16c
14 changed files with 295 additions and 249 deletions

View File

@@ -28,10 +28,10 @@ namespace OpenRA.FileFormats
public readonly int Y;
public readonly string Image;
public TreeReference(int xy, string image)
public TreeReference(int xy, string image, int mapSize)
{
X = xy % 128;
Y = xy / 128;
X = xy % mapSize;
Y = xy / mapSize;
Image = image;
}