From 14f6cc96178c0324833a9ec3097263d35a67e181 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 6 Oct 2012 16:17:09 +0200 Subject: fixed some shit thing --- src/koopatlas/core.cpp | 4 ++-- 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; -- cgit v1.2.3