Mercurial > hg > openttd
changeset 6997:fa5196b1b53d draft
(svn r10253) -Fix (r10249): putting the < the wrong way around made the new towns pretty small.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 21 Jun 2007 16:12:31 +0000 (2007-06-21) |
parents | 27cc72475f39 |
children | 13ea0d5f8acf |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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;