1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Fix song 0/7 check using num_pppppp_tracks instead of num_mmmmmm_tracks

Just looked over this and had to do a double-take. It should be
num_mmmmmm_tracks, not num_pppppp_tracks, because MMMMMM comes first in
the vector of music tracks.
This commit is contained in:
Misa 2020-11-06 00:34:53 -08:00 committed by Ethan Lee
parent 9698b42432
commit 410d80b731

View file

@ -189,7 +189,7 @@ void musicclass::play(int t, const double position_sec /*= 0.0*/, const int fade
currentsong = -1; currentsong = -1;
return; return;
} }
if (currentsong == 0 || currentsong == 7 || (!map.custommode && (currentsong == 0+num_pppppp_tracks || currentsong == 7+num_pppppp_tracks))) 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 // Level Complete theme, no fade in or repeat
if(Mix_FadeInMusicPos(musicTracks[t].m_music, 0, 0, position_sec)==-1) if(Mix_FadeInMusicPos(musicTracks[t].m_music, 0, 0, position_sec)==-1)