[Scummvm-cvs-logs] CVS: scummvm/scumm script_v72he.cpp,2.77,2.78

Travis Howell kirben at users.sourceforge.net
Sat Sep 11 18:13:08 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10911/scumm

Modified Files:
	script_v72he.cpp 
Log Message:

Use talkie resource for HE 99+ games.


Index: script_v72he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v72he.cpp,v
retrieving revision 2.77
retrieving revision 2.78
diff -u -d -r2.77 -r2.78
--- script_v72he.cpp	12 Sep 2004 00:52:14 -0000	2.77
+++ script_v72he.cpp	12 Sep 2004 01:12:06 -0000	2.78
@@ -1935,8 +1935,8 @@
 }
 
 void ScummEngine_v72he::decodeParseString(int m, int n) {
-	byte b;
-	int i, id, color;
+	byte b, *ptr;
+	int i, color, size;
 	int args[31];
 	byte name[1024];
 
@@ -2008,8 +2008,24 @@
 		}
 		break;
 	case 0xE1:
-		id = pop();
-		// Load and display talkie resource.
+		ptr = getResourceAddress(rtTalkie, pop());
+		size = READ_BE_UINT32(ptr + 12);
+		memcpy(name, ptr + 16, size);
+
+		switch (m) {
+		case 0:
+			actorTalk(name);
+			break;
+		case 1:
+			drawString(1, name);
+			break;
+		case 2:
+			unkMessage1(name);
+			break;
+		case 3:
+			unkMessage2(name);
+			break;
+		}
 		break;
 	case 0xF9:
 		color = pop();





More information about the Scummvm-git-logs mailing list