From ad610772911d1f3598cf3d2e4076e0e94fd1e0ea Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 30 Nov 2012 23:10:08 +0100 Subject: fixes to the map music or something. idk --- src/koopatlas/core.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/koopatlas/core.cpp') diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp index fd6eace..03b8dae 100644 --- a/src/koopatlas/core.cpp +++ b/src/koopatlas/core.cpp @@ -193,7 +193,8 @@ bool WMInit_LoadResources2(void *ptr) { } if (wm->mapData.load(wm->mapPath)) { - dKPMusic::play(GetSaveFile()->GetBlock(-1)->currentMapMusic); + if (!wm->isFirstPlay) + wm->startMusic(); return true; } else return false; @@ -333,6 +334,10 @@ ActivateWipe(WIPE_MARIO); DoStartLevel(GetGameMgr(), &sl); }*/ +void dScKoopatlas_c::startMusic() { + dKPMusic::play(GetSaveFile()->GetBlock(-1)->currentMapMusic); +} + int dScKoopatlas_c::onCreate() { OSReport("KP scene settings: %08x\n", settings); @@ -405,6 +410,8 @@ int dScKoopatlas_c::onCreate() { SaveBlock *save = GetSaveFile()->GetBlock(-1); currentMapID = save->current_world; + isFirstPlay = (currentMapID == 0) && (settings & 0x80000000); + somethingAboutSound(_8042A788); return true; -- cgit v1.2.3