[Scummvm-git-logs] scummvm master -> 2dea19e61c1f53a3a52e07b4a65b6f2360bddb09

dwatteau noreply at scummvm.org
Sat Jan 4 16:10:51 UTC 2025


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:
2dea19e61c M4: Fix int32 discrepancy


Commit: 2dea19e61c1f53a3a52e07b4a65b6f2360bddb09
    https://github.com/scummvm/scummvm/commit/2dea19e61c1f53a3a52e07b4a65b6f2360bddb09
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-01-04T17:10:05+01:00

Commit Message:
M4: Fix int32 discrepancy

Changed paths:
    engines/m4/riddle/rooms/section8/room807.cpp


diff --git a/engines/m4/riddle/rooms/section8/room807.cpp b/engines/m4/riddle/rooms/section8/room807.cpp
index a7c8b07edb4..a19e622c247 100644
--- a/engines/m4/riddle/rooms/section8/room807.cpp
+++ b/engines/m4/riddle/rooms/section8/room807.cpp
@@ -640,8 +640,8 @@ void Room807::parser() {
 			switch (_G(kernel).trigger) {
 			case -1: {
 				player_update_info(_G(my_walker), &_G(player_info));
-				const int32 destX = CLIP(_G(player_info).x, 247, 400);
-				const int32 destY = MAX(_G(player_info).y, 342);
+				const int32 destX = CLIP(_G(player_info).x, (int32)247, (int32)400);
+				const int32 destY = MAX(_G(player_info).y, (int32)342);
 
 				if (_G(flags[V276]) == 0 && _G(flags[V275]) == 0) {
 					_G(flags[V275]) = 1;




More information about the Scummvm-git-logs mailing list