equal
deleted
inserted
replaced
667 HASBIT(GetTownRoadMask(TILE_ADD(tile, dist_multi * (ToTileIndexDiff(_roadblock_tileadd[dir + 3]) + ToTileIndexDiff(_roadblock_tileadd[dir + 2])))), dir)); |
667 HASBIT(GetTownRoadMask(TILE_ADD(tile, dist_multi * (ToTileIndexDiff(_roadblock_tileadd[dir + 3]) + ToTileIndexDiff(_roadblock_tileadd[dir + 2])))), dir)); |
668 } |
668 } |
669 |
669 |
670 static bool IsRoadAllowedHere(TileIndex tile, int dir) |
670 static bool IsRoadAllowedHere(TileIndex tile, int dir) |
671 { |
671 { |
672 if (TileX(tile) < 1 || TileY(tile) < 1 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false; |
672 if (TileX(tile) < 2 || TileY(tile) < 2 || MapMaxX() <= TileX(tile) || MapMaxY() <= TileY(tile)) return false; |
673 |
673 |
674 Slope k; |
674 Slope k; |
675 Slope slope; |
675 Slope slope; |
676 |
676 |
677 /* If this assertion fails, it might be because the world contains |
677 /* If this assertion fails, it might be because the world contains |