mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-24 07:05:34 -07:00
Added IsSaveLoaded guard clause to RecalculateAvailableChecks.
This commit is contained in:
parent
eefe7729ab
commit
356439d1e2
2 changed files with 5 additions and 8 deletions
|
@ -1471,10 +1471,7 @@ static bool AvailableChecksProcessUndiscoveredExitsHandler(std::shared_ptr<Ship:
|
||||||
INFO_MESSAGE("[SOH] Available Checks - Process Undiscovered Exits %s",
|
INFO_MESSAGE("[SOH] Available Checks - Process Undiscovered Exits %s",
|
||||||
logic->ACProcessUndiscoveredExits ? "enabled" : "disabled");
|
logic->ACProcessUndiscoveredExits ? "enabled" : "disabled");
|
||||||
|
|
||||||
if (GameInteractor::IsSaveLoaded(true)) {
|
CheckTracker::RecalculateAvailableChecks();
|
||||||
CheckTracker::RecalculateAvailableChecks();
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1988,6 +1988,9 @@ void RecalculateAvailableChecks(RandomizerRegion startingRegion /* = RR_ROOT */)
|
||||||
if (!enableAvailableChecks) {
|
if (!enableAvailableChecks) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!GameInteractor::IsSaveLoaded(true)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ResetPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
ResetPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
||||||
StartPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
StartPerformanceTimer(PT_RECALCULATE_AVAILABLE_CHECKS);
|
||||||
|
@ -2135,10 +2138,7 @@ void CheckTrackerSettingsWindow::DrawElement() {
|
||||||
"with your current progress.")
|
"with your current progress.")
|
||||||
.Color(THEME_COLOR))) {
|
.Color(THEME_COLOR))) {
|
||||||
enableAvailableChecks = CVarGetInteger(CVAR_TRACKER_CHECK("EnableAvailableChecks"), 0);
|
enableAvailableChecks = CVarGetInteger(CVAR_TRACKER_CHECK("EnableAvailableChecks"), 0);
|
||||||
|
RecalculateAvailableChecks();
|
||||||
if (GameInteractor::IsSaveLoaded(true)) {
|
|
||||||
RecalculateAvailableChecks();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
ImGui::EndDisabled();
|
ImGui::EndDisabled();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue