From fcc2e32771bf44fbd5346b7bd2050f2434ae6fa0 Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 18 Apr 2013 00:41:37 +0200 Subject: stop Peach harp fanfare properly --- src/endingMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3