author | tron |
Tue, 21 Feb 2006 07:44:33 +0000 | |
changeset 3056 | 44eedffdb485 |
parent 3055 | ed20cba49858 |
child 3057 | 7e42adcf85a8 |
--- a/tunnelbridge_cmd.c Tue Feb 21 07:41:54 2006 +0000 +++ b/tunnelbridge_cmd.c Tue Feb 21 07:44:33 2006 +0000 @@ -433,9 +433,9 @@ 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) {