summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas')
-rw-r--r--src/koopatlas/core.cpp16
-rw-r--r--src/koopatlas/pathmanager.cpp6
2 files changed, 12 insertions, 10 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp
index 6618650..6101197 100644
--- a/src/koopatlas/core.cpp
+++ b/src/koopatlas/core.cpp
@@ -539,14 +539,14 @@ void dScKoopatlas_c::executeState_Normal() {
state.setState(&StateID_CSMenu);
hud->hideAll();
#ifdef NEWER_DEBUG
- } else if (nowPressed & WPAD_MINUS) {
- pathManager.unlockAllPaths(2);
- } else if (nowPressed & WPAD_A) {
- pathManager.unlockAllPaths(0);
- SaveBlock *save = GetSaveFile()->GetBlock(-1);
- for (int w = 0; w < 6; w++)
- for (int l = 0; l < 6; l++)
- save->SetLevelCondition(w, l, COND_COIN_ALL);
+ // } else if (nowPressed & WPAD_MINUS) {
+ // pathManager.unlockAllPaths(2);
+ // } else if (nowPressed & WPAD_A) {
+ // pathManager.unlockAllPaths(0);
+ // SaveBlock *save = GetSaveFile()->GetBlock(-1);
+ // for (int w = 0; w < 6; w++)
+ // for (int l = 0; l < 6; l++)
+ // save->SetLevelCondition(w, l, COND_COIN_ALL);
#endif
}
}
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index b1108b8..271bcbe 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -243,8 +243,10 @@ void dWMPathManager_c::setup() {
completionMessageType = CMP_MSG_EXITS;
}
}
- if (CanFinishWorld && flag == totalFlag)
- completionMessageType = CMP_MSG_WORLD;
+ if (CanFinishWorld && flag == totalFlag) {
+ shouldRequestSave = true;
+ completionMessageType = CMP_MSG_WORLD;
+ }
if (CanFinishAlmostAllCoins) {
if ((conds & COND_COIN_ALL) == COND_COIN_ALL)