summaryrefslogtreecommitdiff
path: root/src
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
commitfb92e30dfb4678f679936a166265e90ffa7c48a5 (patch)
tree0c5fe5333d432802841d430cf99d6e36d7c11f50 /src
parent5111c6205cedc91c336c30f641d731ecee1afc74 (diff)
downloadopenttd-fb92e30dfb4678f679936a166265e90ffa7c48a5.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 :)
Diffstat (limited to 'src')
-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;