* Is there a tunnel in the way in any direction? * @param tile the tile to search from. * @param z the 'z' to search on. * @return true if and only if there is a tunnel. */
| 66 | * @return true if and only if there is a tunnel. |
| 67 | */ |
| 68 | bool IsTunnelInWay(TileIndex tile, int z) |
| 69 | { |
| 70 | return IsTunnelInWayDir(tile, z, (TileX(tile) > (Map::MaxX() / 2)) ? DIAGDIR_NE : DIAGDIR_SW) || |
| 71 | IsTunnelInWayDir(tile, z, (TileY(tile) > (Map::MaxY() / 2)) ? DIAGDIR_NW : DIAGDIR_SE); |
| 72 | } |
no test coverage detected