mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
Always use the correct string slot for HE games specific cases in decodeParseString()
svn-id: r21462
This commit is contained in:
parent
59dd971a02
commit
26c0d2b4fa
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user