aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/modules
diff options
context:
space:
mode:
authorFilippos Karapetis2013-07-09 06:28:03 +0300
committerFilippos Karapetis2013-07-09 06:28:41 +0300
commit37ebaa376311c6b033bc6043c09dfd88b3c80726 (patch)
tree8a44d2d02142a49c1730ec9cc0d6c8ba86e90048 /engines/neverhood/modules
parent395ee92a8578d5e74ff525140ea942e2c7608b92 (diff)
downloadscummvm-rg350-37ebaa376311c6b033bc6043c09dfd88b3c80726.tar.gz
scummvm-rg350-37ebaa376311c6b033bc6043c09dfd88b3c80726.tar.bz2
scummvm-rg350-37ebaa376311c6b033bc6043c09dfd88b3c80726.zip
NEVERHOOD: Fix incorrect sound heard when pressing the ladder button
When the ladder is down, pressing the ladder button shouldn't do anything
Diffstat (limited to 'engines/neverhood/modules')
-rw-r--r--engines/neverhood/modules/module2800.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/modules/module2800.cpp b/engines/neverhood/modules/module2800.cpp
index 7ab732b4ac..a64bdc8b32 100644
--- a/engines/neverhood/modules/module2800.cpp
+++ b/engines/neverhood/modules/module2800.cpp
@@ -3140,7 +3140,7 @@ void Scene2822::update() {
_ssButton->setVisible(false);
_countdownStatus = 1;
_countdown = 48;
- } else if (_countdownStatus == 1) {
+ } else if (_countdownStatus == 1 && getGlobalVar(V_LADDER_DOWN_ACTION)) {
playSound(0, 0x1384CB60);
_countdownStatus = 2;
_countdown = 12;