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

dreammaster noreply at scummvm.org
Fri Jun 6 02:17:34 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:
c8295fbf36 M4: RIDDLE: Fix for Ripley after-image bug


Commit: c8295fbf365265b49af5b43470aa5783f804e078
    https://github.com/scummvm/scummvm/commit/c8295fbf365265b49af5b43470aa5783f804e078
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-06-05T19:17:28-07:00

Commit Message:
M4: RIDDLE: Fix for Ripley after-image bug

Changed paths:
    engines/m4/wscript/ws_cruncher.cpp


diff --git a/engines/m4/wscript/ws_cruncher.cpp b/engines/m4/wscript/ws_cruncher.cpp
index 9442a3cc660..b7332dce1a8 100644
--- a/engines/m4/wscript/ws_cruncher.cpp
+++ b/engines/m4/wscript/ws_cruncher.cpp
@@ -919,6 +919,13 @@ static void op_SETCEL(Anim8 *myAnim8) {
 		myIndex = (*_GWS(myArg1) & 0xff0000) >> 16;
 	}
 
+	// WORKAROUND: There are a few places in the game,
+	// such as in room 303 at the start of the game,
+	// where a myIndex of -1 can be produced, resulting
+	// in "after-images" where Ripley isn't properly erased
+	if (myIndex < 0)
+		myIndex = 0;
+
 	if (!myAnim8->myCCB) {
 		// Allocate and initialize a CCB structure
 		if ((myAnim8->myCCB = (CCB *)mem_alloc(sizeof(CCB), "CCB")) == nullptr) {




More information about the Scummvm-git-logs mailing list