summaryrefslogtreecommitdiff
path: root/src/koopatlas/core.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-31 00:50:54 +0100
committerTreeki <treeki@gmail.com>2012-10-31 00:50:54 +0100
commite7ffd801beef0f4b5e49db7d384fb3dd77c5a68c (patch)
tree41a6fcad926c1e92a4c4405e2d7d85b24f911eb7 /src/koopatlas/core.cpp
parent4e43d350d71fcbd90bc8e647aa53fc5152bb1de8 (diff)
downloadkamek-e7ffd801beef0f4b5e49db7d384fb3dd77c5a68c.tar.gz
kamek-e7ffd801beef0f4b5e49db7d384fb3dd77c5a68c.zip
bugfixes and some cleanup
Diffstat (limited to 'src/koopatlas/core.cpp')
-rw-r--r--src/koopatlas/core.cpp59
1 files changed, 5 insertions, 54 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp
index 249861f..0a463f5 100644
--- a/src/koopatlas/core.cpp
+++ b/src/koopatlas/core.cpp
@@ -532,44 +532,18 @@ void dScKoopatlas_c::endState_ContinueWait() {
void dScKoopatlas_c::executeState_Normal() {
+ if (pathManager.doingThings())
+ return;
+
int nowPressed = Remocon_GetPressed(GetActiveRemocon());
// Nothing related to the menu is going on
- if (nowPressed & WPAD_ONE && !pathManager.isEnteringLevel) {
+ if (nowPressed & WPAD_ONE) {
STKI_SHOW(this->stockItem) = true;
state.setState(&StateID_PowerupsWait);
- } else if (nowPressed & WPAD_PLUS && !pathManager.isEnteringLevel) {
+ } else if (nowPressed & WPAD_PLUS) {
CSMENU_ACTIVE(this->csMenu) = true;
state.setState(&StateID_CSMenu);
- // } else if (nowPressed & WPAD_A) {
-
- // if (pathManager.currentNode->type == dKPNode_s::LEVEL) {
- // int w = pathManager.currentNode->levelNumber[0];
- // if (w == 9) {
- // int l = pathManager.currentNode->levelNumber[1];
-
- // if ((l < 6) || (l == 33) || (l == 34))
- // coins->LoadCoinsForWorld(9);
- // else if ((l < 11) || (l == 35) || (l == 36))
- // coins->LoadCoinsForWorld(10);
- // else if ((l < 16) || (l == 37) || (l == 38) || (l == 31) )
- // coins->LoadCoinsForWorld(11);
- // else if ((l < 19) || (l == 39) || (l == 40))
- // coins->LoadCoinsForWorld(12);
- // else
- // coins->LoadCoinsForWorld(13);
-
- // state.setState(&StateID_CoinsWait);
- // }
- // else {
- // coins->LoadCoinsForWorld(w-1);
- // state.setState(&StateID_CoinsWait);
- // }
- // }
- // else {
- // MapSoundPlayer(SoundRelatedClass, SE_SYS_INVALID, 1);
- // }
-
} else if (nowPressed & WPAD_MINUS) {
pathManager.unlockAllPaths(2);
} else if (nowPressed & WPAD_A) {
@@ -590,29 +564,6 @@ void dScKoopatlas_c::executeState_CSMenu() {
switch (CSMENU_CURRENT(this->csMenu)) {
case 0:
// Star Coins
-// if (pathManager.currentNode->type == dKPNode_s::LEVEL) {
-// int w = pathManager.currentNode->levelNumber[0];
-// if (w == 9) {
-// int l = pathManager.currentNode->levelNumber[1];
-//
-// if ((l < 6) || (l == 33) || (l == 34))
-// coins->LoadCoinsForWorld(9);
-// else if ((l < 11) || (l == 35) || (l == 36))
-// coins->LoadCoinsForWorld(10);
-// else if ((l < 16) || (l == 37) || (l == 38) || (l == 31) )
-// coins->LoadCoinsForWorld(11);
-// else if ((l < 19) || (l == 39) || (l == 40))
-// coins->LoadCoinsForWorld(12);
-// else
-// coins->LoadCoinsForWorld(13);
-//
-// state.setState(&StateID_CoinsWait);
-// }
-// else {
-// coins->LoadCoinsForWorld(w-1);
-// }
-// }
-// else { MapSoundPlayer(SoundRelatedClass, SE_SYS_INVALID, 1); }
coins->show();
state.setState(&StateID_CoinsWait);
break;