From b0cfb5363c39a30eb4daf34e6dd162ed717541d4 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 23 Oct 2012 18:25:09 +0200 Subject: yay fading --- src/koopatlas/core.cpp | 2 +- src/koopatlas/pathmanager.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp index 252d9a6..e4e3c07 100644 --- a/src/koopatlas/core.cpp +++ b/src/koopatlas/core.cpp @@ -453,7 +453,7 @@ void dScKoopatlas_c::setBGMTrack(int trackID) { int dScKoopatlas_c::onDelete() { if (bgm.Exists()) - bgm.Stop(5); + bgm.Stop(0); FreeScene(0); FreeScene(1); diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 6b28d66..87725bd 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -777,6 +777,11 @@ void dWMPathManager_c::activatePoint() { isEnteringLevel = true; levelStartWait = 40; enteredLevel = dLevelInfo_c::s_info.searchBySlot(w, l); + + if (dScKoopatlas_c::instance->bgm.Exists()) { + dScKoopatlas_c::instance->bgm.Stop(50); + dScKoopatlas_c::instance->bgm.DetachSound(); + } } } -- cgit v1.2.3