From a9de63ef022ddaef7d5c8ac2d5ec6e6d73f9f320 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 24 Jun 2004 13:03:26 +0000 Subject: Add missing code svn-id: r14028 --- scumm/script_v6he.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index ce6c4c07c7..971da452c7 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1273,7 +1273,8 @@ void ScummEngine_v6he::redimArray(int arrayId, int newX, int newY, int type) { void ScummEngine_v6he::decodeParseString(int m, int n) { byte b; - int c; + int i, color; + int args[16]; b = fetchScriptByte(); @@ -1326,15 +1327,16 @@ void ScummEngine_v6he::decodeParseString(int m, int n) { 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(); -- cgit v1.2.3