[Scummvm-git-logs] scummvm master -> 38029ab287275fd39ce748157a056b6cc7a66860

AndywinXp noreply at scummvm.org
Sat Apr 27 10:13:31 UTC 2024


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:
38029ab287 SCUMM: MOONBASE: Fix pixel hit test detection


Commit: 38029ab287275fd39ce748157a056b6cc7a66860
    https://github.com/scummvm/scummvm/commit/38029ab287275fd39ce748157a056b6cc7a66860
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-04-27T12:13:26+02:00

Commit Message:
SCUMM: MOONBASE: Fix pixel hit test detection

Changed paths:
    engines/scumm/he/moonbase/moonbase_gfx.cpp


diff --git a/engines/scumm/he/moonbase/moonbase_gfx.cpp b/engines/scumm/he/moonbase/moonbase_gfx.cpp
index 63c14592a52..08b903ce335 100644
--- a/engines/scumm/he/moonbase/moonbase_gfx.cpp
+++ b/engines/scumm/he/moonbase/moonbase_gfx.cpp
@@ -627,7 +627,7 @@ bool Wiz::moonbaseLayeredWizHitTest(int32 *outValue, int32 *optionalOutActualVal
 	}
 
 	if (optionalOutActualValue) {
-		*optionalOutActualValue = pixel;
+		*optionalOutActualValue = (int32)((uint16)pixel);
 	}
 
 	return true;




More information about the Scummvm-git-logs mailing list