diff options
author | Ash Wolf <ninji@wuffs.org> | 2018-04-24 00:33:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2018-04-24 00:33:29 +0100 |
commit | b981a7ee3ab02d165fe8e50e13e6df416a1d6319 (patch) | |
tree | 924fae44a1102df92342aad6b218ebdb8cd88176 /src | |
parent | 27ede75d03699d774b217bda5d13dccc4750c428 (diff) | |
download | kamek-resurrection.tar.gz kamek-resurrection.zip |
add support for multi-channel custom music as ids 200+resurrection
Diffstat (limited to 'src')
-rw-r--r-- | src/music.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/music.cpp b/src/music.cpp index e48b4a8..fe615f4 100644 --- a/src/music.cpp +++ b/src/music.cpp @@ -188,7 +188,8 @@ extern "C" u8 after_course_getMusicForZone(u8 realThemeID) { return realThemeID; bool usesDrums = (realThemeID >= 200); - return hijackMusicWithSongName(SongNameList[realThemeID-100], realThemeID, true, usesDrums?4:2, usesDrums?2:1, 0); + const char *name = SongNameList[realThemeID - (usesDrums ? 200 : 100)]; + return hijackMusicWithSongName(name, realThemeID, true, usesDrums?4:2, usesDrums?2:1, 0); } |