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

Set currentsong to -1 when halting music

This is 2.2 behavior, which I forgot to keep. Otherwise, if music has
halted and you try to play the same track, it simply won't work, because
the current song is the same as the song you're trying to play. This is
what happened with the trinket scripts - the game halted music, then
tried to play the same track.

Fixes #712.
This commit is contained in:
Misa 2021-04-12 09:27:04 -07:00 committed by Ethan Lee
parent dbd9a114b6
commit 711b36c9c8

View file

@ -268,6 +268,7 @@ void musicclass::haltdasmusik(void)
{
/* Just pauses music. This is intended. */
pause();
currentsong = -1;
}
void musicclass::silencedasmusik(void)