diff options
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 95c545f..70f3fab 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -209,8 +209,15 @@ void dWMPathManager_c::unlockPaths() { SpammyReport("UNLOCKING PATHS: All complete @ %p\n", in); - for (int i = 0; i < pathLayer->nodeCount; i++) - NodeAvailabilityData[i] = pathLayer->nodes[i]->isUnlocked(); + for (int i = 0; i < pathLayer->nodeCount; i++) { + dKPNode_s *node = pathLayer->nodes[i]; + NodeAvailabilityData[i] = node->isUnlocked(); + + if (node->type == node->LEVEL && node->isUnlocked() && node->levelNumber[1] != 99) { + save->completions[node->levelNumber[0]-1][node->levelNumber[1]-1] |= COND_UNLOCKED; + OSReport("beets: %d-%d\n", node->levelNumber[0], node->levelNumber[1]); + } + } // did anything become newly available?! newlyAvailablePaths = 0; |