summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2018-04-24 00:33:29 +0100
committerAsh Wolf <ninji@wuffs.org>2018-04-24 00:33:29 +0100
commitb981a7ee3ab02d165fe8e50e13e6df416a1d6319 (patch)
tree924fae44a1102df92342aad6b218ebdb8cd88176 /src
parent27ede75d03699d774b217bda5d13dccc4750c428 (diff)
downloadkamek-resurrection.tar.gz
kamek-resurrection.zip
add support for multi-channel custom music as ids 200+resurrection
Diffstat (limited to '')
-rw-r--r--src/music.cpp3
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);
}