[Scummvm-git-logs] scummvm master -> 073e72a5273244dc4de06b2e1367f25bd382cdb5

somaen noreply at scummvm.org
Sat Dec 5 23:21:54 UTC 2026


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

Summary:
fb32ad690f WATCHMAKER: Report line intersections as valid again
2c2680b629 WATCHMAKER: Make the inside_flag in PointInside2DRectangle() int again.
073e72a527 WATCHMAKER: Handle right-mouse button presses too.


Commit: fb32ad690f4a8fb9bd95e45619ede33d80742818
    https://github.com/scummvm/scummvm/commit/fb32ad690f4a8fb9bd95e45619ede33d80742818
Author: Einar Johan Trøan Sømåen (somaen at scummvm.org)
Date: 2026-12-06T00:21:44+01:00

Commit Message:
WATCHMAKER: Report line intersections as valid again

When IntersLineLine was changed to return a struct, the valid
case was not set to true, defaulting to false, which means that
it always failed, leading characters to walk into walls.

Assisted-by: Claude:claude-opus-5-5

Changed paths:
    engines/watchmaker/walk/walkutil.cpp


diff --git a/engines/watchmaker/walk/walkutil.cpp b/engines/watchmaker/walk/walkutil.cpp
index 30d98cf02d0..3800af71d2e 100644
--- a/engines/watchmaker/walk/walkutil.cpp
+++ b/engines/watchmaker/walk/walkutil.cpp
@@ -157,6 +157,7 @@ PointResult IntersLineLine(float xa, float ya, float xb, float yb, float xc, flo
 
 		result.result.x = xa + r * (xb - xa);
 		result.result.z = ya + r * (yb - ya);
+		result.isValid = true;
 	}
 
 	return result;


Commit: 2c2680b629b57abded7caafb223176dcf50e89d2
    https://github.com/scummvm/scummvm/commit/2c2680b629b57abded7caafb223176dcf50e89d2
Author: Einar Johan Trøan Sømåen (somaen at scummvm.org)
Date: 2026-12-06T00:21:45+01:00

Commit Message:
WATCHMAKER: Make the inside_flag in PointInside2DRectangle() int again.

The math won't work on a bool, leading to some broken checks, due
to multiple transitions folding into true, rather than accumulating.

Assisted-by: Claude:claude-opus-5-5

Changed paths:
    engines/watchmaker/walk/walkutil.cpp


diff --git a/engines/watchmaker/walk/walkutil.cpp b/engines/watchmaker/walk/walkutil.cpp
index 3800af71d2e..681d75039d1 100644
--- a/engines/watchmaker/walk/walkutil.cpp
+++ b/engines/watchmaker/walk/walkutil.cpp
@@ -32,7 +32,7 @@ namespace Watchmaker {
  *                  PointIn2DRectangle
  * --------------------------------------------------*/
 bool PointInside2DRectangle(double pgon[4][2], double x, double z) {
-	bool inside_flag;
+	int32 inside_flag;
 
 //	Crossing-Multiply algorithm
 	{
@@ -61,7 +61,7 @@ bool PointInside2DRectangle(double pgon[4][2], double x, double z) {
 		}
 	}
 
-	return (inside_flag) ;
+	return (inside_flag != 0) ;
 }
 
 /* 04/02/98 16.01 ----------------------------------


Commit: 073e72a5273244dc4de06b2e1367f25bd382cdb5
    https://github.com/scummvm/scummvm/commit/073e72a5273244dc4de06b2e1367f25bd382cdb5
Author: Einar Johan Trøan Sømåen (somaen at scummvm.org)
Date: 2026-12-06T00:21:45+01:00

Commit Message:
WATCHMAKER: Handle right-mouse button presses too.

Assisted-by: Claude:claude-opus-5-5

Changed paths:
    engines/watchmaker/sdl_wrapper.cpp


diff --git a/engines/watchmaker/sdl_wrapper.cpp b/engines/watchmaker/sdl_wrapper.cpp
index e64a046c21a..cf44c5c535b 100644
--- a/engines/watchmaker/sdl_wrapper.cpp
+++ b/engines/watchmaker/sdl_wrapper.cpp
@@ -50,6 +50,12 @@ void sdl_wrapper::pollSDL() {
 		case Common::EVENT_LBUTTONUP:
 			bLPressed = false;
 			break;
+		case Common::EVENT_RBUTTONDOWN:
+			bRPressed = true;
+			break;
+		case Common::EVENT_RBUTTONUP:
+			bRPressed = false;
+			break;
 		case Common::EVENT_KEYUP:
 			KeyTable[event.kbd.keycode] = 0x10;
 			break;




More information about the Scummvm-git-logs mailing list