Fixed some music bugs

Previously, when MMMMMM is installed but the user is using PPPPPP, niceplay would still restart the song even if it's the same. That has been fixed. In addition, Plenary and Path Complete no longer loop when MMMMMM is installed but PPPPPP is in use.
This commit is contained in:
Stelpjo authored and Ethan Lee committed 2020-02-12 21:52:25 -05:00
1 parent df1c1303bf
commit c665d5b8c8
1 file changed
+2 -2
+2 -2
View File
@@ -246,7 +246,7 @@ void musicclass::play(int t)
{
// musicfade = 0;
currentsong = t;
if (currentsong == 0 || currentsong == 7)
if (currentsong == 0 || currentsong == 7 || currentsong == 16 || currentsong == 23)
{
// Level Complete theme, no fade in or repeat
// musicchannel = musicchan[currentsong].play(0);
@@ -412,7 +412,7 @@ void musicclass::processmusic()
void musicclass::niceplay(int t)
{
// important: do nothing if the correct song is playing!
if(currentsong!=t)
if((!mmmmmm && currentsong!=t) || (mmmmmm && usingmmmmmm && currentsong!=t) || (mmmmmm && !usingmmmmmm && currentsong!=t+16))
{
if(currentsong!=-1)
{