diff options
author | Treeki <treeki@gmail.com> | 2013-04-18 00:41:37 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-18 00:42:12 +0200 |
commit | fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0 (patch) | |
tree | 7a1c364c7c42d6d17ad3dff02b131b30ef51599d | |
parent | ad4ca391a7fe8397a4322b44d6c35bc667e9e0ed (diff) | |
download | kamek-fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0.tar.gz kamek-fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0.zip |
stop Peach harp fanfare properly
-rw-r--r-- | src/endingMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/endingMgr.cpp b/src/endingMgr.cpp index ef40613..09dfc3c 100644 --- a/src/endingMgr.cpp +++ b/src/endingMgr.cpp @@ -47,6 +47,11 @@ int dEndingMgr_c::onCreate() { } int dEndingMgr_c::onDelete() { + nw4r::snd::SoundHandle *fanfare = (nw4r::snd::SoundHandle*) + (((u32)SoundRelatedClass) + 0x900); + if (fanfare->Exists()) + fanfare->Stop(60); + daBossDemo_c::onDelete(); WLClass::instance->disableDemoControl(true); return true; @@ -216,6 +221,7 @@ void dEndingMgr_c::executeState_ThanksPeach() { if (peach->stage == 1 && peachSt == &peach->StateID_Turn) { timer++; if (timer == 1) { + // This plays the Peach harp fanfare sub_8019C390(_8042A788, 6); } if (timer > 20) { |