mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-22 03:46:55 +01:00
(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.
This commit is contained in:
parent
709ec29563
commit
b6cbd30c3f
@ -668,6 +668,8 @@ static bool NeighborIsRoadTile(TileIndex tile, int dir, RoadBlockTitleDistance d
|
|||||||
|
|
||||||
static bool IsRoadAllowedHere(TileIndex tile, int dir)
|
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 k;
|
||||||
Slope slope;
|
Slope slope;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user