summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-21 16:12:31 +0000
committerrubidium <rubidium@openttd.org>2007-06-21 16:12:31 +0000
commit2792019b78fbfd10702b93a2d570562397cf8cb2 (patch)
treeed69f106e962506a85e20c881bc54016b245199d /src
parent02154f38b8c5c2984fc86d534f8d6606a553ef0b (diff)
downloadopenttd-2792019b78fbfd10702b93a2d570562397cf8cb2.tar.xz
(svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small.
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 1011af7c7..b0104910b 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -668,7 +668,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) < 1 || TileY(tile) < 1 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false;
Slope k;
Slope slope;