src/tunnel_map.cpp
changeset 7002 1bf6a62b0fcb
parent 6489 511474c82dd3
child 7323 20a18eb8efaf
equal deleted inserted replaced
7001:4f0dae004e46 7002:1bf6a62b0fcb
    37  * @param tile the tile to search from.
    37  * @param tile the tile to search from.
    38  * @param z    the 'z' to search on.
    38  * @param z    the 'z' to search on.
    39  * @param dir  the direction to start searching to.
    39  * @param dir  the direction to start searching to.
    40  * @return true if and only if there is a tunnel.
    40  * @return true if and only if there is a tunnel.
    41  */
    41  */
    42 static bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir)
    42 bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir)
    43 {
    43 {
    44 	TileIndexDiff delta = TileOffsByDiagDir(dir);
    44 	TileIndexDiff delta = TileOffsByDiagDir(dir);
    45 	uint height;
    45 	uint height;
    46 
    46 
    47 	do {
    47 	do {