(svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small.
authorrubidium
Thu, 21 Jun 2007 16:12:31 +0000
changeset 6997 cc3dd5a40fb8
parent 6996 dbdeeb666e2d
child 6998 39e783d3816c
(svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small.
src/town_cmd.cpp
--- a/src/town_cmd.cpp	Thu Jun 21 15:57:14 2007 +0000
+++ b/src/town_cmd.cpp	Thu Jun 21 16:12:31 2007 +0000
@@ -668,7 +668,7 @@
 
 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;