From 2792019b78fbfd10702b93a2d570562397cf8cb2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 21 Jun 2007 16:12:31 +0000 Subject: [PATCH] (svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small. --- 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 1011af7c74..b0104910b5 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;