diff options
| author | Philip Dubé <159546+serprex@users.noreply.github.com> | 2026-08-16 18:46:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-16 18:46:15 +0000 |
| commit | bdccc868b777bc1cb48e51da72968fdeaf27d224 (patch) | |
| tree | 38394b4937213aeba96b1b95fcb8df35eb42a208 | |
| parent | 17a7fde00374e0d28b552b005c8a2b2b8934294c (diff) | |
Fix entrance overrides being different between loading spoiler vs starting seed (#7085)
| -rw-r--r-- | soh/soh/Enhancements/randomizer/entrance.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/soh/soh/Enhancements/randomizer/entrance.cpp b/soh/soh/Enhancements/randomizer/entrance.cpp index ff08e0015..cc14f1e8f 100644 --- a/soh/soh/Enhancements/randomizer/entrance.cpp +++ b/soh/soh/Enhancements/randomizer/entrance.cpp @@ -1647,10 +1647,12 @@ void EntranceShuffler::CreateEntranceOverrides() { int16_t destinationIndex = -1; int16_t replacementDestinationIndex = -1; - // Only set destination indices for two way entrances and when decouple entrances is off - if (entrance->GetReverse() != nullptr && !ctx->GetOption(RSK_DECOUPLED_ENTRANCES)) { - replacementDestinationIndex = entrance->GetReplacement()->GetReverse()->GetIndex(); + // Track the reverse destination, useful for savewarp handling + if (entrance->GetReverse() != nullptr) { destinationIndex = entrance->GetReverse()->GetIndex(); + if (!ctx->GetOption(RSK_DECOUPLED_ENTRANCES)) { + replacementDestinationIndex = entrance->GetReplacement()->GetReverse()->GetIndex(); + } } entranceOverrides[i] = { |
