[Scummvm-git-logs] scummvm master -> 486f030a583c72e398609e5f519c57e0b5a36702

bluegr noreply at scummvm.org
Mon Jun 15 22:36:42 UTC 2026


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

Summary:
486f030a58 NANCY: Disable piece rotation if it's not supported in onebuildpuzzle


Commit: 486f030a583c72e398609e5f519c57e0b5a36702
    https://github.com/scummvm/scummvm/commit/486f030a583c72e398609e5f519c57e0b5a36702
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-06-16T01:36:35+03:00

Commit Message:
NANCY: Disable piece rotation if it's not supported in onebuildpuzzle

Fixes right clicking in the chicken coop puzzle in Nancy 10

Changed paths:
    engines/nancy/action/puzzle/onebuildpuzzle.cpp


diff --git a/engines/nancy/action/puzzle/onebuildpuzzle.cpp b/engines/nancy/action/puzzle/onebuildpuzzle.cpp
index d67b9b44dc7..fd1f080afab 100644
--- a/engines/nancy/action/puzzle/onebuildpuzzle.cpp
+++ b/engines/nancy/action/puzzle/onebuildpuzzle.cpp
@@ -424,6 +424,10 @@ void OneBuildPuzzle::updatePieceRender(int pieceIdx) {
 
 void OneBuildPuzzle::rotatePiece(int pieceIdx) {
 	Piece &p = _pieces[pieceIdx];
+
+	if (!_canRotateAll && !p.isPreRotated)
+		return;
+
 	int oldRot = p.curRotation;
 	int oldW = p.rotateSurfaces[oldRot].w;
 	int oldH = p.rotateSurfaces[oldRot].h;




More information about the Scummvm-git-logs mailing list