diff options
author | Treeki <treeki@gmail.com> | 2012-10-18 07:23:19 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-18 07:23:19 +0200 |
commit | 035bfe6144a9baa8c03f10e92a9689506068f47f (patch) | |
tree | d29b46b279de4462123513d5eea21fc5cef180f7 /src/koopatlas/pathmanager.cpp | |
parent | edf303f6ba8e30e04e828cb0b9b268d534f194c4 (diff) | |
download | kamek-035bfe6144a9baa8c03f10e92a9689506068f47f.tar.gz kamek-035bfe6144a9baa8c03f10e92a9689506068f47f.zip |
I don't even know. I'll try to fix this tomorrow
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; |