From fb92e30dfb4678f679936a166265e90ffa7c48a5 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 11 Jul 2007 02:13:00 +0000 Subject: [PATCH] (svn r10505) -Fix(r10249)[FS#1016]: Town was still trying to gather information for tiles on which it could not build. aising the values to 2 will prevent further invasion of the water-at-the-edge :) --- src/town_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 1fce947525..cb090c6828 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -669,7 +669,7 @@ static bool NeighborIsRoadTile(TileIndex tile, int dir, RoadBlockTitleDistance d static bool IsRoadAllowedHere(TileIndex tile, int dir) { - if (TileX(tile) < 1 || TileY(tile) < 1 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false; + if (TileX(tile) < 2 || TileY(tile) < 2 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false; Slope k; Slope slope;