(svn r1876) Make placement of oil rigs and refineries map size agnostic

This commit is contained in:
tron 2005-02-14 22:17:21 +00:00
parent 5ff839732e
commit 4102982ef4
1 changed files with 1 additions and 1 deletions

View File

@ -1192,7 +1192,7 @@ static bool CheckNewIndustry_Oilwell(uint tile, int type)
x = TileX(tile);
y = TileY(tile);
if ( x < 15 || y < 15 || x > 238 || y > 238)
if (DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < 16)
return true;
_error_message = STR_483B_CAN_ONLY_BE_POSITIONED;