Commit 044ac246 authored by 魔大农's avatar 魔大农 🍀

Fixed song switching

parent 8be35140
This diff is collapsed.
......@@ -394,12 +394,13 @@ void MasterControl::NextMusicState()
previousMusicState_ = musicState_;
musicState_ = MUSIC_OFF;
FX->FadeOut(musicSource2_);
//Pick song
} else if (musicState_ == MUSIC_OFF){
previousMusicState_ = musicState_;
if (previousMusicState_ == MUSIC_SONG1)
musicState_ = MUSIC_SONG2;
else if (previousMusicState_ == MUSIC_SONG2)
musicState_ = MUSIC_SONG1;
previousMusicState_ = musicState_;
}
//Fade in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment