summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-07-11 02:13:00 +0000
committerbelugas <belugas@openttd.org>2007-07-11 02:13:00 +0000
commita59b7f492d1a1ae160387c8a72eb65a18318fea3 (patch)
tree0c5fe5333d432802841d430cf99d6e36d7c11f50
parent95c877cf7171baf54a886583cadb84c231944915 (diff)
downloadopenttd-a59b7f492d1a1ae160387c8a72eb65a18318fea3.tar.xz
(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 :)
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 1fce94752..cb090c682 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;