Skip to content
Permalink
Browse files

NEVERHOOD: Fix sound effect heard when the castle elevator door opens

The condition where the elevator door opening sound is heard is
triggered twice. Now, we prevent it being triggered a second time.
  • Loading branch information...
bluegr committed Jul 1, 2013
1 parent 5de6a87 commit 318200cd86b437e388adbb97b75cce3874b3736f
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/neverhood/modules/module1300.cpp
@@ -800,7 +800,7 @@ void AsScene1306Elevator::update() {
if (_isUp && _countdown != 0 && (--_countdown == 0)) if (_isUp && _countdown != 0 && (--_countdown == 0))
stGoingDown(); stGoingDown();
AnimatedSprite::update(); AnimatedSprite::update();
if (_currFrameIndex == 7) { if (_currFrameIndex == 7 && _asElevatorDoor->getVisible()) {
playSound(1); playSound(1);
_asElevatorDoor->setVisible(false); _asElevatorDoor->setVisible(false);
} }

0 comments on commit 318200c

Please sign in to comment.
You can’t perform that action at this time.