mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-21 06:48:39 -04:00
Fix entrance overrides being different between loading spoiler vs starting seed (#7085)
This commit is contained in:
@@ -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] = {
|
||||
|
||||
Reference in New Issue
Block a user