diff options
author | Treeki <treeki@gmail.com> | 2013-02-13 06:04:52 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-13 06:04:52 +0100 |
commit | a9d6e00e80065676a243c9a3033e47009488059d (patch) | |
tree | b0eb86ac813174258a9963b68d50bab34ad00b13 /src/koopatlas/pathmanager.cpp | |
parent | 2686a59694b209fda5297a7bf8003c3210e9ed29 (diff) | |
download | kamek-a9d6e00e80065676a243c9a3033e47009488059d.tar.gz kamek-a9d6e00e80065676a243c9a3033e47009488059d.zip |
add W7 to W8 cutscene
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 0ef89fc..dd291cb 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -7,7 +7,7 @@ extern "C" void PlaySoundWithFunctionB4(void *spc, nw4r::snd::SoundHandle *handle, int id, int unk); -static u8 MaybeFinishingLevel[2] = {0xFF,0xFF}; +u8 MaybeFinishingLevel[2] = {0xFF,0xFF}; void dWMPathManager_c::setup() { dScKoopatlas_c *wm = dScKoopatlas_c::instance; @@ -127,6 +127,18 @@ void dWMPathManager_c::setup() { currentNode = pathLayer->nodes[save->current_path_node]; SpammyReport("OK %p\n", currentNode); } + + if (wm->isAfterKamekCutscene) { + // look for the 8-1 node + for (int i = 0; i < pathLayer->nodeCount; i++) { + dKPNode_s *node = pathLayer->nodes[i]; + if (node->type == dKPNode_s::LEVEL && node->levelNumber[0] == 8 && node->levelNumber[1] == 1) { + currentNode = node; + save->current_path_node = i; + break; + } + } + } } for (int i = 0; i < pathLayer->nodeCount; i++) |