mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
dbd9a114b6
commit
711b36c9c8
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ void musicclass::haltdasmusik(void)
|
||||||
{
|
{
|
||||||
/* Just pauses music. This is intended. */
|
/* Just pauses music. This is intended. */
|
||||||
pause();
|
pause();
|
||||||
|
currentsong = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void musicclass::silencedasmusik(void)
|
void musicclass::silencedasmusik(void)
|
||||||
|
|
Loading…
Reference in a new issue