mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-08 04:18:14 -05:00
Check Tracker - Fixes duplicated checks when using Only on Pause or Only on Combo
This commit is contained in:
parent
00cbe4ffd5
commit
82c5caa460
@ -93,7 +93,11 @@ void DrawCheckTracker(bool& open) {
|
|||||||
|
|
||||||
if (doInitialize)
|
if (doInitialize)
|
||||||
InitializeChecks();
|
InitializeChecks();
|
||||||
|
else if (gPlayState == nullptr || gSaveContext.fileNum < 0 || gSaveContext.fileNum > 2) {
|
||||||
|
Teardown();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (CVar_GetS32("gCheckTrackerWindowType", 1) == 0) {
|
if (CVar_GetS32("gCheckTrackerWindowType", 1) == 0) {
|
||||||
if (CVar_GetS32("gCheckTrackerShowOnlyPaused", 0) == 1)
|
if (CVar_GetS32("gCheckTrackerShowOnlyPaused", 0) == 1)
|
||||||
if (gPlayState == nullptr || gPlayState->pauseCtx.state == 0)
|
if (gPlayState == nullptr || gPlayState->pauseCtx.state == 0)
|
||||||
@ -116,10 +120,6 @@ void DrawCheckTracker(bool& open) {
|
|||||||
ImGui::Text("Waiting for file load...");
|
ImGui::Text("Waiting for file load...");
|
||||||
EndFloatWindows();
|
EndFloatWindows();
|
||||||
return;
|
return;
|
||||||
} else if (gPlayState == nullptr || gSaveContext.fileNum < 0 || gSaveContext.fileNum > 2) {
|
|
||||||
Teardown();
|
|
||||||
EndFloatWindows();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SceneID sceneId = SCENE_ID_MAX;
|
SceneID sceneId = SCENE_ID_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user