This commit is contained in:
kp 2024-08-04 15:40:03 -05:00
parent 844a5d94a3
commit 22fde39062

View file

@ -662,8 +662,6 @@ void Map::Rebuild(NormalGenType gen_normals)
}
// Now perform the process of "parenting" sectors; this essentially takes in our flat list of sectors and creates a hierarchy.
// Note: For better room-over-room support we should consider changing this to also consider floor/ceiling heights, otherwise
// it'll break.
std::sort(sectors.begin(), sectors.end(), [](const auto& a, const auto& b) { return a->floor.base_height < b->ceiling.base_height && a->area < b->area; });
SanitizeSectors();
std::sort(sectors.begin(), sectors.end(), [](const auto& a, const auto& b) { return a->floor.base_height < b->ceiling.base_height && a->area < b->area; });