mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 04:33:09 +00:00
SCUMM: HE (Sound): Do not stop sounds for heap saves under version 80
This is explicitly what HE72 and below asks; it is implied that whatever sound will be running at that point will be handled via the scripts.
This commit is contained in:
parent
44fc2ae2ee
commit
9c724a203c
@ -692,10 +692,14 @@ bool ScummEngine::loadState(int slot, bool compat, Common::String &filename) {
|
||||
//
|
||||
// If we don't have iMUSE at all we may as well stop the sounds. The previous
|
||||
// default behavior here was to stopAllSounds on all state restores.
|
||||
//
|
||||
// HE games explicitly do not stop sounds when loading a "heap save",
|
||||
// under version 80!
|
||||
|
||||
if (!_imuse || _saveSound || !_saveTemporaryState) {
|
||||
if ((!_imuse || _saveSound || !_saveTemporaryState) &&
|
||||
!(_saveTemporaryState && _game.heversion < 80)) {
|
||||
_sound->stopAllSounds();
|
||||
} else if (_saveTemporaryState && !_imuseDigital) {
|
||||
} else if (_saveTemporaryState && !_imuseDigital && _game.heversion == 0) {
|
||||
// Still, we have to stop the talking sound even
|
||||
// if the save state is temporary.
|
||||
_sound->stopTalkSound();
|
||||
|
Loading…
x
Reference in New Issue
Block a user