[Scummvm-cvs-logs] scummvm master -> 318200cd86b437e388adbb97b75cce3874b3736f

bluegr bluegr at gmail.com
Mon Jul 1 04:08:23 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

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


Commit: 318200cd86b437e388adbb97b75cce3874b3736f
    https://github.com/scummvm/scummvm/commit/318200cd86b437e388adbb97b75cce3874b3736f
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-06-30T19:07:14-07:00

Commit Message:
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.

Changed paths:
    engines/neverhood/modules/module1300.cpp



diff --git a/engines/neverhood/modules/module1300.cpp b/engines/neverhood/modules/module1300.cpp
index cc5c220..062434f 100644
--- a/engines/neverhood/modules/module1300.cpp
+++ b/engines/neverhood/modules/module1300.cpp
@@ -800,7 +800,7 @@ void AsScene1306Elevator::update() {
 	if (_isUp && _countdown != 0 && (--_countdown == 0))
 		stGoingDown();
 	AnimatedSprite::update();
-	if (_currFrameIndex == 7) {
+	if (_currFrameIndex == 7 && _asElevatorDoor->getVisible()) {
 		playSound(1);
 		_asElevatorDoor->setVisible(false);
 	}






More information about the Scummvm-git-logs mailing list