From 41e6ed50fbbe263ab017c3efe370fbcaf635182b Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Wed, 4 Dec 2013 00:11:26 +0100 Subject: [PATCH] EMI: Stop all PoolSounds when changing the set - this fixes the problem that the fish sound was continuing even after leaving the water without catching any of the fish --- engines/grim/grim.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/grim/grim.cpp b/engines/grim/grim.cpp index 7f37ce0a443..c19ce409ac7 100644 --- a/engines/grim/grim.cpp +++ b/engines/grim/grim.cpp @@ -1109,6 +1109,11 @@ void GrimEngine::setSet(Set *scene) { if (scene == _currSet) return; + if (getGameType() == GType_MONKEY4) { + foreach (PoolSound *s, PoolSound::getPool()) { + s->stop(); + } + } // Stop the actors. This fixes bug #289 (https://github.com/residualvm/residualvm/issues/289) // and it makes sense too, since when changing set the directions // and coords change too.