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
This commit is contained in:
Christian Krause
2013-12-12 01:10:11 +01:00
parent 645955f0f7
commit 41e6ed50fb
+5
View File
@@ -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.