diff options
author | Treeki <treeki@gmail.com> | 2012-11-30 23:10:08 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-11-30 23:10:08 +0100 |
commit | ad610772911d1f3598cf3d2e4076e0e94fd1e0ea (patch) | |
tree | 35ab0ea47c0954793019663c1fe41a58be1166ac /src/koopatlas/core.cpp | |
parent | db34c0af338b8cf04f50b4ade98668869fd303e1 (diff) | |
download | kamek-ad610772911d1f3598cf3d2e4076e0e94fd1e0ea.tar.gz kamek-ad610772911d1f3598cf3d2e4076e0e94fd1e0ea.zip |
fixes to the map music or something. idk
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/core.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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; |