mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-10 04:42:04 -04:00
Leave Start Randomizer disabled after generation fails (#7157)
This commit is contained in:
@@ -16,6 +16,7 @@ bool GenerateRandomizer(std::set<RandomizerCheck> excludedLocations, std::set<Ra
|
||||
const auto ctx = Rando::Context::GetInstance();
|
||||
ResetPerformanceTimers();
|
||||
StartPerformanceTimer(PT_WHOLE_SEED);
|
||||
ctx->SetSpoilerLoaded(false);
|
||||
|
||||
// if a blank seed was entered, make a random one
|
||||
if (seedInput.empty()) {
|
||||
|
||||
@@ -717,7 +717,6 @@ void SohMenu::AddMenuRandomizer() {
|
||||
});
|
||||
AddWidget(path, "Generate Randomizer", WIDGET_BUTTON)
|
||||
.Callback([](WidgetInfo& info) {
|
||||
Rando::Context::GetInstance()->SetSpoilerLoaded(false);
|
||||
GenerateRandomizer(CVarGetInteger(CVAR_RANDOMIZER_SETTING("ManualSeedEntry"), 0) ? seedString : "");
|
||||
})
|
||||
.PreFunc([](WidgetInfo& info) {
|
||||
|
||||
Reference in New Issue
Block a user