equal
deleted
inserted
replaced
2047 // normal tracks, jump to owner check |
2047 // normal tracks, jump to owner check |
2048 break; |
2048 break; |
2049 |
2049 |
2050 case MP_TUNNELBRIDGE: |
2050 case MP_TUNNELBRIDGE: |
2051 if ((_map5[tile] & 0xC0) == 0xC0) { // is bridge middle part? |
2051 if ((_map5[tile] & 0xC0) == 0xC0) { // is bridge middle part? |
2052 TileInfo ti; |
2052 uint height; |
2053 FindLandscapeHeightByTile(&ti, tile); |
2053 uint tileh = GetTileSlope(tile, &height); |
2054 |
2054 |
2055 // correct Z position of a train going under a bridge on slopes |
2055 // correct Z position of a train going under a bridge on slopes |
2056 if (CORRECT_Z(ti.tileh)) ti.z += 8; |
2056 if (CORRECT_Z(tileh)) height += 8; |
2057 |
2057 |
2058 if (v->z_pos != ti.z) return true; // train is going over bridge |
2058 if (v->z_pos != height) return true; // train is going over bridge |
2059 } |
2059 } |
2060 break; |
2060 break; |
2061 |
2061 |
2062 case MP_STREET: |
2062 case MP_STREET: |
2063 // tracks over roads, do owner check of tracks (_map_owner[tile]) |
2063 // tracks over roads, do owner check of tracks (_map_owner[tile]) |