mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
Updated EntranceDiscovered to account for entrances not in the entranceShuffleTable.
This commit is contained in:
parent
a0a14e0381
commit
faf8318383
1 changed files with 6 additions and 1 deletions
|
@ -1707,7 +1707,12 @@ void Randomizer_DiscoverRegion(Region* region, std::unordered_set<RandomizerRegi
|
|||
}
|
||||
|
||||
void Randomizer_EntranceDiscovered(s16 index) {
|
||||
Rando::Entrance* entrance = Rando::entranceMap[index];
|
||||
auto entranceEntry = Rando::entranceMap.find(index);
|
||||
if (entranceEntry == Rando::entranceMap.end()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Rando::Entrance* entrance = entranceEntry->second;
|
||||
Region* region = entrance->GetConnectedRegion();
|
||||
|
||||
std::unordered_set<RandomizerRegion> visitedRegions;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue