diff options
-rw-r--r-- | scumm/script_v6he.cpp | 10 | ||||
-rw-r--r-- | scumm/script_v72he.cpp | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index a550e12219..bcac573eea 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -1272,7 +1272,7 @@ void ScummEngine_v60he::redimArray(int arrayId, int newX, int newY, int type) { void ScummEngine_v60he::decodeParseString(int m, int n) { byte b; - int i, color; + int i, colors; int args[31]; b = fetchScriptByte(); @@ -1312,15 +1312,15 @@ void ScummEngine_v60he::decodeParseString(int m, int n) { _scriptPointer += resStrLen(_scriptPointer) + 1; break; case 0xF9: - color = pop(); - if (color == 1) { + colors = pop(); + if (colors == 1) { _string[m].color = pop(); } else { - push(color); + push(colors); 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; + _string[m].color = _charsetColorMap[0]; } break; case 0xFE: diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index f4faf895ab..781df21ce7 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -2528,7 +2528,7 @@ void ScummEngine_v72he::o72_setWindowCaption() { } void ScummEngine_v72he::decodeParseString(int m, int n) { - int i, color, size; + int i, colors, size; int args[31]; byte name[1024]; @@ -2582,15 +2582,15 @@ void ScummEngine_v72he::decodeParseString(int m, int n) { } break; case 0xF9: - color = pop(); - if (color == 1) { + colors = pop(); + if (colors == 1) { _string[m].color = pop(); } else { - push(color); + push(colors); 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; + _string[m].color = _charsetColorMap[0]; } break; case 0xFE: |