summaryrefslogtreecommitdiff
path: root/tunnel_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel_map.c')
-rw-r--r--tunnel_map.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tunnel_map.c b/tunnel_map.c
index 8752d8107..435d62f20 100644
--- a/tunnel_map.c
+++ b/tunnel_map.c
@@ -15,8 +15,7 @@ TileIndex GetOtherTunnelEnd(TileIndex tile)
do {
tile += delta;
} while (
- !IsTileType(tile, MP_TUNNELBRIDGE) ||
- GB(_m[tile].m5, 4, 4) != 0 ||
+ !IsTunnelTile(tile) ||
GetTunnelDirection(tile) != dir ||
GetTileZ(tile) != z
);
@@ -37,8 +36,7 @@ static bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir)
return
z == height &&
- IsTileType(tile, MP_TUNNELBRIDGE) &&
- GB(_m[tile].m5, 4, 4) == 0 &&
+ IsTunnelTile(tile) &&
GetTunnelDirection(tile) == dir;
}