[Scummvm-git-logs] scummvm master -> 261414cd9bd5a72ffdab1e13162ccba311b79984

bluegr noreply at scummvm.org
Sun Mar 15 06:25:24 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:
261414cd9b NANCY: Fix RaycastPuzzle typo. PVS-Studio V501


Commit: 261414cd9bd5a72ffdab1e13162ccba311b79984
    https://github.com/scummvm/scummvm/commit/261414cd9bd5a72ffdab1e13162ccba311b79984
Author: tunnelsociety (tunnelsociety at mm.st)
Date: 2026-03-15T08:25:19+02:00

Commit Message:
NANCY: Fix RaycastPuzzle typo. PVS-Studio V501

Likely copy-paste issue: compare to many similar nearby conditions where we
compare -1 -2 +1 +2. (But automated testing of many random seeds showed no
differences in door placement with this change anyway.)

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


diff --git a/engines/nancy/action/puzzle/raycastpuzzle.cpp b/engines/nancy/action/puzzle/raycastpuzzle.cpp
index 82e91c312a7..83420fd7ff8 100644
--- a/engines/nancy/action/puzzle/raycastpuzzle.cpp
+++ b/engines/nancy/action/puzzle/raycastpuzzle.cpp
@@ -664,7 +664,7 @@ void RaycastLevelBuilder::writeDoors(uint startX, uint startY, uint themeID) {
 					} else if (	!(_wallMap[(y + 1) * _fullWidth + x])				&&
 								(_wallMap[(y - 1) * _fullWidth + x] & kWall)	&&
 								(_wallMap[(y + 2) * _fullWidth + x] & kWall)	&&
-								!(_wallMap[y * _fullWidth + x + 1])					&&
+								!(_wallMap[y * _fullWidth + x - 1])					&&
 								!(_wallMap[y * _fullWidth + x - 2])					&&
 								!(_wallMap[y * _fullWidth + x + 1])					&&
 								!(_wallMap[y * _fullWidth + x + 2])					&&




More information about the Scummvm-git-logs mailing list