From 943744751acd38b5ca8fb6d9513b370f87ee0fac Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 14 Feb 2005 22:17:21 +0000 Subject: [PATCH] (svn r1876) Make placement of oil rigs and refineries map size agnostic --- industry_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/industry_cmd.c b/industry_cmd.c index 1a2971fb5d..67c496820a 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -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;