Always use the correct string slot for HE games specific cases in decodeParseString()

svn-id: r21462
This commit is contained in:
Travis Howell 2006-03-26 09:21:07 +00:00
parent 59dd971a02
commit 26c0d2b4fa
3 changed files with 5 additions and 5 deletions

View File

@ -2937,7 +2937,7 @@ void ScummEngine_v100he::decodeParseString(int m, int n) {
push(colors);
getStackList(args, ARRAYSIZE(args));
for (i = 0; i < 16; i++)
_charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
_charsetColorMap[i] = _charsetData[_string[m]._default.charset][i] = (unsigned char)args[i];
_string[m].color = _charsetColorMap[0];
}
break;
@ -2975,7 +2975,7 @@ void ScummEngine_v100he::decodeParseString(int m, int n) {
_actorToPrintStrFor = pop();
if (_actorToPrintStrFor != 0xFF) {
a = derefActor(_actorToPrintStrFor, "decodeParseString");
_string[0].color = a->_talkColor;
_string[m].color = a->_talkColor;
}
}
break;

View File

@ -1301,7 +1301,7 @@ void ScummEngine_v60he::decodeParseString(int m, int n) {
push(colors);
getStackList(args, ARRAYSIZE(args));
for (i = 0; i < 16; i++)
_charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
_charsetColorMap[i] = _charsetData[_string[m]._default.charset][i] = (unsigned char)args[i];
_string[m].color = _charsetColorMap[0];
}
break;

View File

@ -2302,7 +2302,7 @@ void ScummEngine_v72he::decodeParseString(int m, int n) {
push(colors);
getStackList(args, ARRAYSIZE(args));
for (i = 0; i < 16; i++)
_charsetColorMap[i] = _charsetData[_string[1]._default.charset][i] = (unsigned char)args[i];
_charsetColorMap[i] = _charsetData[_string[m]._default.charset][i] = (unsigned char)args[i];
_string[m].color = _charsetColorMap[0];
}
break;
@ -2312,7 +2312,7 @@ void ScummEngine_v72he::decodeParseString(int m, int n) {
_actorToPrintStrFor = pop();
if (_actorToPrintStrFor != 0xFF) {
a = derefActor(_actorToPrintStrFor, "decodeParseString");
_string[0].color = a->_talkColor;
_string[m].color = a->_talkColor;
}
}
break;