summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-18 00:41:37 +0200
committerTreeki <treeki@gmail.com>2013-04-18 00:42:12 +0200
commitfcc2e32771bf44fbd5346b7bd2050f2434ae6fa0 (patch)
tree7a1c364c7c42d6d17ad3dff02b131b30ef51599d /src
parentad4ca391a7fe8397a4322b44d6c35bc667e9e0ed (diff)
downloadkamek-fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0.tar.gz
kamek-fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0.zip
stop Peach harp fanfare properly
Diffstat (limited to 'src')
-rw-r--r--src/endingMgr.cpp6
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) {