mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1876) Make placement of oil rigs and refineries map size agnostic
This commit is contained in:
parent
391cd5658f
commit
943744751a
@ -1192,7 +1192,7 @@ static bool CheckNewIndustry_Oilwell(uint tile, int type)
|
|||||||
x = TileX(tile);
|
x = TileX(tile);
|
||||||
y = TileY(tile);
|
y = TileY(tile);
|
||||||
|
|
||||||
if ( x < 15 || y < 15 || x > 238 || y > 238)
|
if (DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < 16)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
_error_message = STR_483B_CAN_ONLY_BE_POSITIONED;
|
_error_message = STR_483B_CAN_ONLY_BE_POSITIONED;
|
||||||
|
Loading…
Reference in New Issue
Block a user