diff options
author | Thierry Crozat | 2019-09-13 00:07:20 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-09-13 01:08:30 +0100 |
commit | 71e0f587754a91e7a537e717fd887a96fd0cd4eb (patch) | |
tree | c867b3ebab9ebd598b1a5a2217ea9077cc5d80a9 /engines/supernova | |
parent | 2999d77dd853eb6fd7baca516ca4469798ff8e14 (diff) | |
download | scummvm-rg350-71e0f587754a91e7a537e717fd887a96fd0cd4eb.tar.gz scummvm-rg350-71e0f587754a91e7a537e717fd887a96fd0cd4eb.tar.bz2 scummvm-rg350-71e0f587754a91e7a537e717fd887a96fd0cd4eb.zip |
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.
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/supernova.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index c79a6a26dd..b8c9adbec0 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -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(); |