diff options
author | Filippos Karapetis | 2014-07-07 02:00:37 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-07-07 02:00:58 +0300 |
commit | 4207fbd2d6f2ee01e6992de526c0c43333b8e624 (patch) | |
tree | 51e2749f9deae6c760644c4e894ce055a6ab6f6f /engines/neverhood/modules/module1400_sprites.cpp | |
parent | 23f58229e9e900107dbe27d40b621f1ca51cc920 (diff) | |
download | scummvm-rg350-4207fbd2d6f2ee01e6992de526c0c43333b8e624.tar.gz scummvm-rg350-4207fbd2d6f2ee01e6992de526c0c43333b8e624.tar.bz2 scummvm-rg350-4207fbd2d6f2ee01e6992de526c0c43333b8e624.zip |
NEVERHOOD: Play a single sound when losing the memory puzzle (bug #6672)
When the memory puzzle is reset, each revealed tile gets hidden again.
When a lot of tiles were hidden, the multiple clicking sounds would
fill the available sound slots. To avoid this, only a single click is
sounded when losing
Diffstat (limited to 'engines/neverhood/modules/module1400_sprites.cpp')
-rw-r--r-- | engines/neverhood/modules/module1400_sprites.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/neverhood/modules/module1400_sprites.cpp b/engines/neverhood/modules/module1400_sprites.cpp index 30a5c340c9..99a2a314a7 100644 --- a/engines/neverhood/modules/module1400_sprites.cpp +++ b/engines/neverhood/modules/module1400_sprites.cpp @@ -873,10 +873,11 @@ void AsScene1405Tile::show() { } } -void AsScene1405Tile::hide() { +void AsScene1405Tile::hide(bool playClickSound) { if (_isShowing) { _isShowing = false; - playSound(0); + if (playClickSound) + playSound(0); setVisible(false); } } |