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

digitall noreply at scummvm.org
Sun Jun 15 20:36:04 UTC 2025


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:
d777a1d584 M4: Fix GCC Compiler Warning


Commit: d777a1d58457496c335e8ecba3f52ed71ee813ca
    https://github.com/scummvm/scummvm/commit/d777a1d58457496c335e8ecba3f52ed71ee813ca
Author: D G Turner (digitall at scummvm.org)
Date: 2025-06-15T21:34:47+01:00

Commit Message:
M4: Fix GCC Compiler Warning

Changed paths:
    engines/m4/adv_r/adv_rails.cpp


diff --git a/engines/m4/adv_r/adv_rails.cpp b/engines/m4/adv_r/adv_rails.cpp
index a44aaeff842..e936e8ef436 100644
--- a/engines/m4/adv_r/adv_rails.cpp
+++ b/engines/m4/adv_r/adv_rails.cpp
@@ -506,7 +506,7 @@ void CreateEdge(int32 node1, int32 node2, Buffer *walkCodes) {
 			scanY = y1;
 			for (i = 0; ((i <= yDiff) && valid && (!finished)); i++) {
 				// Check if we have scanned off the edge of the buffer
-				if (scanX >= width || (y_unit > 0) && (scanY >= height) || ((y_unit < 0) && (scanY < 0))) {
+				if (scanX >= width || ((y_unit > 0) && (scanY >= height)) || ((y_unit < 0) && (scanY < 0))) {
 					finished = true;
 				} else {
 					// Else we either haven't yet reached the buffer, or we are on it




More information about the Scummvm-git-logs mailing list