1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-03 23:20:14 +02:00

Restart music on replay and on setting change

This commit is contained in:
Kowalski Dragon 2021-12-22 21:49:53 +01:00
parent 0dc6006937
commit 6e4f637a80
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C4E819BD2BC6233E
2 changed files with 6 additions and 0 deletions

View file

@ -210,7 +210,10 @@ void options::toggle(Menu1 uIDCheckItem)
if (!Options.Music)
midi::music_stop();
else
{
midi::music_init();
midi::play_pb_theme();
}
return;
case Menu1::Show_Menu:
Options.ShowMenu = Options.ShowMenu == 0;

View file

@ -241,7 +241,10 @@ void pb::replay_level(int demoMode)
demo_mode = demoMode;
mode_change(1);
if (options::Options.Music)
{
midi::music_init();
midi::play_pb_theme();
}
MainTable->Message(1014, static_cast<float>(options::Options.Players));
}