mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
This fixes a bug where the resumemusic() script command would always play MMMMMM track 15 (or, if you're using PPPPPP, just not work). This is because musicclass::haltdasmusik() assigns resumesong AFTER calling Mix_HaltMusic(), but the songend() callback fires before the resumesong assignment, meaning resumesong gets set to -1 instead of whatever currentsong was previously. To fix this, just move the assignment into the callback itself (I don't know why this wasn't done before). I could have moved it to before the Mix_HaltMusic() call, but moving it into the callback itself fixes it for all cases of the music stopping (such as when the music fades out).
8.2 KiB
8.2 KiB