equal
deleted
inserted
replaced
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 { |