mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +01:00
Reset fade booleans when starting music
This fixes issues with music playing, only for it to fade out afterwards. This happened if tracks 0 or 7 were played after fading out, because playing other tracks reset the fade booleans (by calling a fade-in), but not tracks 0 or 7.
This commit is contained in:
parent
1f5835c985
commit
cd38d2ca12
1 changed files with 3 additions and 0 deletions
|
@ -200,6 +200,9 @@ void musicclass::play(int t)
|
|||
return;
|
||||
}
|
||||
|
||||
m_doFadeInVol = false;
|
||||
m_doFadeOutVol = false;
|
||||
|
||||
if (currentsong == 0 || currentsong == 7 || (!map.custommode && (currentsong == 0+num_mmmmmm_tracks || currentsong == 7+num_mmmmmm_tracks)))
|
||||
{
|
||||
// Level Complete theme, no fade in or repeat
|
||||
|
|
Loading…
Reference in a new issue