SUPERNOVA: Stop any playing sound before loading a savegame

This fixes for exemple loading a savegame from the Museum in part 2
after triggering the alarm but before being caught. Before this
commit the alarm would continue to play after loading the savegame.
This commit is contained in:
Thierry Crozat 2019-09-13 00:07:20 +01:00
parent 2999d77dd8
commit 71e0f58775

View File

@ -697,6 +697,9 @@ bool SupernovaEngine::loadGame(int slot) {
if (slot < 0)
return false;
// Stop any sound currently playing.
_sound->stop();
// Make sure no message is displayed as this would otherwise delay the
// switch to the new location until a mouse click.
removeMessage();