mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user