[Scummvm-git-logs] scummvm master -> 487799d637763b0abb878cef808cdb57ca9ab157

sev- noreply at scummvm.org
Tue Sep 16 22:41:56 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:
487799d637 DIRECTOR: LINGO: Implement D6+ differences for the scriptNum of sprite


Commit: 487799d637763b0abb878cef808cdb57ca9ab157
    https://github.com/scummvm/scummvm/commit/487799d637763b0abb878cef808cdb57ca9ab157
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-09-17T00:41:37+02:00

Commit Message:
DIRECTOR: LINGO: Implement D6+ differences for the scriptNum of sprite

Changed paths:
    engines/director/lingo/lingo-the.cpp


diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index ec2268f6545..a65fbcbbf1a 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -1616,7 +1616,14 @@ Datum Lingo::getTheSprite(Datum &id1, int field) {
 		d = (int)(sprite->_colorcode & 0x7);
 		break;
 	case kTheScriptNum:
-		d = sprite->_scriptId.member;
+		if (g_director->getVersion() >= 600) {
+			if (sprite->_behaviors.size() > 0)
+				d = sprite->_behaviors[0].memberID.toMultiplex();	// Return the first script in the list
+			else
+				d = 0;
+		} else {
+			d = sprite->_scriptId.member;
+		}
 		break;
 	case kTheStartTime:
 		d = channel->_startTime;




More information about the Scummvm-git-logs mailing list