diff options
author | Alyssa Milburn | 2011-03-29 19:23:16 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-29 19:33:03 +0200 |
commit | 1557890b7a4c44242d51cc90ae38b44f987900cb (patch) | |
tree | b3c7fac8071f39440ad7962aeec586147bf4d651 /engines/mohawk | |
parent | e1883a6cf49ce174aadaf49b3290aa8bb59ff653 (diff) | |
download | scummvm-rg350-1557890b7a4c44242d51cc90ae38b44f987900cb.tar.gz scummvm-rg350-1557890b7a4c44242d51cc90ae38b44f987900cb.tar.bz2 scummvm-rg350-1557890b7a4c44242d51cc90ae38b44f987900cb.zip |
MOHAWK: Stop playing LB anim sounds on seek().
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 292e8a392f..95d55a6e90 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -1661,6 +1661,11 @@ void LBAnimation::seek(uint16 pos) { _lastTime = 0; _currentFrame = 0; + if (_currentSound != 0xffff) { + _vm->_sound->stopSound(_currentSound); + _currentSound = 0xffff; + } + for (uint32 i = 0; i < _nodes.size(); i++) _nodes[i]->reset(); |