Set CurrentRegionKey when checking an entrance. (#6073)
This commit is contained in:
@@ -1082,12 +1082,14 @@ static std::array<std::vector<Entrance*>, 2> SplitEntrancesByRequirements(std::v
|
|||||||
ReachabilitySearch({});
|
ReachabilitySearch({});
|
||||||
|
|
||||||
for (Entrance* entrance : entrancesToSplit) {
|
for (Entrance* entrance : entrancesToSplit) {
|
||||||
|
logic->CurrentRegionKey = entrance->GetParentRegionKey();
|
||||||
// if an entrance is accessible at all times of day by both ages, it's a soft entrance with no restrictions
|
// if an entrance is accessible at all times of day by both ages, it's a soft entrance with no restrictions
|
||||||
if (entrance->ConditionsMet(true)) {
|
if (entrance->ConditionsMet(true)) {
|
||||||
softEntrances.push_back(entrance);
|
softEntrances.push_back(entrance);
|
||||||
} else {
|
} else {
|
||||||
restrictiveEntrances.push_back(entrance);
|
restrictiveEntrances.push_back(entrance);
|
||||||
}
|
}
|
||||||
|
logic->CurrentRegionKey = RR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reconnect all disconnected entrances
|
// Reconnect all disconnected entrances
|
||||||
|
|||||||
Reference in New Issue
Block a user