equal
deleted
inserted
replaced
706 if (IsTileType(tile, MP_TUNNELBRIDGE)) { |
706 if (IsTileType(tile, MP_TUNNELBRIDGE)) { |
707 if ((_m[tile].m5 & 0xF0) == 0 && |
707 if ((_m[tile].m5 & 0xF0) == 0 && |
708 (uint)(_m[tile].m5 & 3) != (direction ^ 2)) { |
708 (uint)(_m[tile].m5 & 3) != (direction ^ 2)) { |
709 /* This is a tunnel tile */ |
709 /* This is a tunnel tile */ |
710 /* We are not just driving out of the tunnel */ |
710 /* We are not just driving out of the tunnel */ |
711 if ( (uint)(_m[tile].m5 & 3) != direction || ((_m[tile].m5>>1)&6) != tpf->tracktype) |
711 if ( (uint)(_m[tile].m5 & 3) != direction || GB(_m[tile].m5, 2, 2) != tpf->tracktype) |
712 /* We are not driving into the tunnel, or it |
712 /* We are not driving into the tunnel, or it |
713 * is an invalid tunnel */ |
713 * is an invalid tunnel */ |
714 continue; |
714 continue; |
715 flotr = FindLengthOfTunnel(tile, direction); |
715 flotr = FindLengthOfTunnel(tile, direction); |
716 si.cur_length += flotr.length * DIAG_FACTOR; |
716 si.cur_length += flotr.length * DIAG_FACTOR; |