[Scummvm-cvs-logs] scummvm master -> 1557890b7a4c44242d51cc90ae38b44f987900cb
fuzzie
fuzzie at fuzzie.org
Tue Mar 29 19:34:26 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1557890b7a MOHAWK: Stop playing LB anim sounds on seek().
Commit: 1557890b7a4c44242d51cc90ae38b44f987900cb
https://github.com/scummvm/scummvm/commit/1557890b7a4c44242d51cc90ae38b44f987900cb
Author: Alyssa Milburn (fuzzie at fuzzie.org)
Date: 2011-03-29T10:33:03-07:00
Commit Message:
MOHAWK: Stop playing LB anim sounds on seek().
Changed paths:
engines/mohawk/livingbooks.cpp
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 292e8a3..95d55a6 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();
More information about the Scummvm-git-logs
mailing list