mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-03 08:57:00 -04:00
use region for areas instead of area name
This commit is contained in:
@@ -357,9 +357,16 @@ namespace dusk {
|
||||
info.collected = false;
|
||||
}
|
||||
|
||||
// Gather the hint regions this location is in (set avoids duplicates)
|
||||
std::unordered_set<std::string> regions{};
|
||||
for (auto access : location->GetAccessList()) {
|
||||
auto areaName = access->GetArea()->GetName();
|
||||
auto& infoGroup = m_LocationInfo[areaName];
|
||||
for (const auto& region : access->GetArea()->GetHintRegions()) {
|
||||
regions.insert(region);
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto& region : regions) {
|
||||
auto& infoGroup = m_LocationInfo[region];
|
||||
if (!infoGroup.anyAccessible && info.accessible) {
|
||||
infoGroup.anyAccessible = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user