Skip to content

Commit

Permalink
Auto-apply saved-seed if available
Browse files Browse the repository at this point in the history
  • Loading branch information
AECX committed Feb 15, 2021
1 parent 0a993ec commit d62408f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,14 @@ hudConsole->addWatch(page, "throw:", &throwResult, 'x', WatchInterpretation::_u1
if (isLoading)
{
eventListener->checkLoadEvents();

// Check if there's a random seed in the current save data
if (*global::seedInSaveFile > 0 && *global::seedInSaveFile != tools::randomSeed)
{
customSeed = true;
tools::randomSeed = *global::seedInSaveFile;
chestRandomizer->generate();
}
}

if (controller::checkForButtonInputSingleFrame((controller::PadInputs::Button_R | controller::PadInputs::Button_Z)))
Expand Down

0 comments on commit d62408f

Please sign in to comment.