From ff9f08aa411c68e027f594eca16404d920f7c820 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 29 Mar 2011 20:13:06 +0200 Subject: MOHAWK: Only stop the last-played sound in LB's playSound. This might need a version check, but seems to be fine without. --- engines/mohawk/livingbooks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/mohawk/livingbooks.cpp') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 95d55a6e90..3d1c32fc90 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -571,7 +571,8 @@ bool MohawkEngine_LivingBooks::playSound(LBItem *source, uint16 resourceId) { return false; } - _sound->stopSound(); + if (_lastSoundId) + _sound->stopSound(_lastSoundId); _sound->playSound(resourceId); _lastSoundId = resourceId; -- cgit v1.2.3