summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r--src/koopatlas/pathmanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index 41515a6..b2d649d 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -340,7 +340,13 @@ void dWMPathManager_c::activatePoint() {
int w = currentNode->levelNumber[0] - 1;
int l = currentNode->levelNumber[1] - 1;
- if ((l > 29) && (l < 38)) {
+ if (l == 0) {
+ dWMShop_c::instance->LoadShopForWorld(w);
+ dScKoopatlas_c::instance->state.setState(&dScKoopatlas_c::instance->StateID_ShopWait);
+ return;
+ }
+
+ if ((l >= 29) && (l <= 36)) {
SaveBlock *save = GetSaveFile()->GetBlock(-1);
u32 conds = save->GetLevelCondition(w, l);