diff options
Diffstat (limited to 'pathfind.c')
-rw-r--r-- | pathfind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathfind.c b/pathfind.c index 83afa7a9c..9134b3030 100644 --- a/pathfind.c +++ b/pathfind.c @@ -230,7 +230,7 @@ FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, int direction) x += _get_tunlen_inc[direction]; y += _get_tunlen_inc[direction+1]; - tile = TILE_FROM_XY(x,y); + tile = TileVirtXY(x, y); if (IsTileType(tile, MP_TUNNELBRIDGE) && (_map5[tile] & 0xF0) == 0 && // tunnel entrance/exit |