Changeset - r6993:d3a283847bed
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-21 15:13:09
rubidium@openttd.org
(svn r10249) -Fix [FS#906]: town tried to gather information about the neighbourhood of a tile when it couldn't even *ever* build on that tile.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -668,6 +668,8 @@ static bool NeighborIsRoadTile(TileIndex
 

	
 
static bool IsRoadAllowedHere(TileIndex tile, int dir)
 
{
 
	if (TileX(tile) < 1 || TileY(tile) < 1 || MapMaxX() >= TileX(tile) || MapMaxY() >= TileY(tile)) return false;
 

	
 
	Slope k;
 
	Slope slope;
 

	
0 comments (0 inline, 0 general)