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 authored and Ethan Lee committed 2021-04-12 16:17:31 -04:00
1 parent dbd9a114b6
commit 711b36c9c8
1 file changed
+1
+1
View File
@@ -268,6 +268,7 @@ void musicclass::haltdasmusik(void)
{
/* Just pauses music. This is intended. */
pause();
currentsong = -1;
}
void musicclass::silencedasmusik(void)