diff options
-rw-r--r-- | src/koopatlas/core.cpp | 4 | ||||
-rw-r--r-- | src/koopatlas/pathmanager.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp index a48a565..c1f7a43 100644 --- a/src/koopatlas/core.cpp +++ b/src/koopatlas/core.cpp @@ -479,10 +479,10 @@ void dScKoopatlas_c::executeState_Normal() { int nowPressed = Remocon_GetPressed(GetActiveRemocon()); // Nothing related to the menu is going on - if (nowPressed & WPAD_ONE) { + if (nowPressed & WPAD_ONE && !pathManager.isEnteringLevel) { STKI_SHOW(this->stockItem) = true; state.setState(&StateID_PowerupsWait); - } else if (nowPressed & WPAD_PLUS) { + } else if (nowPressed & WPAD_PLUS && !pathManager.isEnteringLevel) { CSMENU_ACTIVE(this->csMenu) = true; state.setState(&StateID_CSMenu); // } else if (nowPressed & WPAD_A) { diff --git a/src/koopatlas/pathmanager.h b/src/koopatlas/pathmanager.h index a1d916d..d0e1de0 100644 --- a/src/koopatlas/pathmanager.h +++ b/src/koopatlas/pathmanager.h @@ -62,6 +62,7 @@ class dWMPathManager_c { void unlockPaths(); bool evaluateUnlockCondition(u8 *&in, SaveBlock *save, int stack); + public: bool isEnteringLevel; bool calledEnteredNode; |