[Scummvm-git-logs] scummvm master -> 7adad87fc4c2c2b6d28e3853a529cb920b587351

alxpnv noreply at scummvm.org
Mon Sep 26 10:58:10 UTC 2022


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:
7adad87fc4 ASYLUM: HiveControl puzzle: don't reset at quit


Commit: 7adad87fc4c2c2b6d28e3853a529cb920b587351
    https://github.com/scummvm/scummvm/commit/7adad87fc4c2c2b6d28e3853a529cb920b587351
Author: alxpnv (alxpnv22 at yahoo.com)
Date: 2022-09-26T14:01:00+03:00

Commit Message:
ASYLUM: HiveControl puzzle: don't reset at quit

Changed paths:
    engines/asylum/puzzles/hivecontrol.cpp


diff --git a/engines/asylum/puzzles/hivecontrol.cpp b/engines/asylum/puzzles/hivecontrol.cpp
index e79fa40f538..29634c50bbf 100644
--- a/engines/asylum/puzzles/hivecontrol.cpp
+++ b/engines/asylum/puzzles/hivecontrol.cpp
@@ -275,7 +275,11 @@ bool PuzzleHiveControl::mouseLeftDown(const AsylumEvent &) {
 }
 
 bool PuzzleHiveControl::mouseRightDown(const AsylumEvent &) {
-	reset();
+	if (_leverDelta) {
+		_leverDelta = 0;
+		_prevLeverPosition = _leverPosition;
+		_currentControl = kControlNone;
+	}
 
 	getSound()->stop(getWorld()->graphicResourceIds[73]);
 	getSound()->stop(getWorld()->graphicResourceIds[74]);




More information about the Scummvm-git-logs mailing list