[Scummvm-git-logs] scummvm master -> b4f89c2cfcb7e49fb2db83b59c3e57b124f78eb2

bluegr noreply at scummvm.org
Mon Jan 13 13:24:01 UTC 2025


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:
b4f89c2cfc NEVERHOOD: Fix "puzzle solved" sound sometimes being played twice in the H room


Commit: b4f89c2cfcb7e49fb2db83b59c3e57b124f78eb2
    https://github.com/scummvm/scummvm/commit/b4f89c2cfcb7e49fb2db83b59c3e57b124f78eb2
Author: Player701 (Player701 at users.noreply.github.com)
Date: 2025-01-13T15:23:58+02:00

Commit Message:
NEVERHOOD: Fix "puzzle solved" sound sometimes being played twice in the H room

To trigger this bug, one had to click on the last cube fast enough - before the previous one has finished moving.

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


diff --git a/engines/neverhood/modules/module2200.cpp b/engines/neverhood/modules/module2200.cpp
index 81f74588c4c..8ced51e1826 100644
--- a/engines/neverhood/modules/module2200.cpp
+++ b/engines/neverhood/modules/module2200.cpp
@@ -659,7 +659,7 @@ void Scene2202::update() {
 	if (_ssDoneMovingCube) {
 		setSurfacePriority(_ssDoneMovingCube->getSurface(), _surfacePriority);
 		_ssDoneMovingCube = nullptr;
-		if (testIsSolved()) {
+		if (!_isCubeMoving && testIsSolved()) {
 			playSound(0);
 			setGlobalVar(V_TILE_PUZZLE_SOLVED, 1);
 			_isSolved = true;




More information about the Scummvm-git-logs mailing list