correction in min_level calculation for non-flat roofs: building levels correspond to height without roof