[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6he.cpp,2.66,2.67

Travis Howell kirben at users.sourceforge.net
Thu Jun 24 06:04:05 CEST 2004


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

Modified Files:
	script_v6he.cpp 
Log Message:

Add missing code


Index: script_v6he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6he.cpp,v
retrieving revision 2.66
retrieving revision 2.67
diff -u -d -r2.66 -r2.67
--- script_v6he.cpp	24 Jun 2004 05:11:19 -0000	2.66
+++ script_v6he.cpp	24 Jun 2004 13:03:26 -0000	2.67
@@ -1273,7 +1273,8 @@
 
 void ScummEngine_v6he::decodeParseString(int m, int n) {
 	byte b;
-	int c;
+	int i, color;
+	int args[16];
 
 	b = fetchScriptByte();
 
@@ -1326,15 +1327,16 @@
 
 		break;
 	case 0xF9:
-		c = pop();
-		if (c == 1) {
+		color = pop();
+		if (color == 1) {
 			_string[m].color = pop();
 		} else {	
-			push(c);
-			int args[16];
+			push(color);
 			getStackList(args, ARRAYSIZE(args));
+			for (i = 0; i < 16; i++)
+				_charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
+			_string[m].color = color;
 		}
-		warning("decodeParseString case 0xF9 stub");
 		break;
 	case 0xFE:
 		_string[m].loadDefault();





More information about the Scummvm-git-logs mailing list