mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 01:42:19 -05:00
Fixes some "seed bleed" instances (#3766)
* Should fix seed bleed between multiple saves and loaded spoilers by resetting the Rando::Context before loading a save. * Only reset for rando saves.
This commit is contained in:
parent
75f9775ad8
commit
8cb06d2d5d
@ -2721,6 +2721,11 @@ extern "C" void Save_SaveGlobal(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void Save_LoadFile(void) {
|
extern "C" void Save_LoadFile(void) {
|
||||||
|
if (gSaveContext.questId == QUEST_RANDOMIZER) {
|
||||||
|
// Reset rando context for rando saves.
|
||||||
|
OTRGlobals::Instance->gRandoContext.reset();
|
||||||
|
OTRGlobals::Instance->gRandoContext = Rando::Context::CreateInstance();
|
||||||
|
}
|
||||||
SaveManager::Instance->LoadFile(gSaveContext.fileNum);
|
SaveManager::Instance->LoadFile(gSaveContext.fileNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user