diff options
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 42df5fbac..a56a7f593 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -433,9 +433,9 @@ static bool DoCheckTunnelInWay(TileIndex tile, uint z, uint dir) do { tile -= delta; height = GetTileZ(tile); - } while (z < tile); + } while (z < height); - if (z == tile && + if (z == height && IsTileType(tile, MP_TUNNELBRIDGE) && GB(_m[tile].m5, 4, 4) == 0 && GB(_m[tile].m5, 0, 2) == dir) { |