diff options
author | Travis Howell | 2004-09-09 11:50:23 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-09 11:50:23 +0000 |
commit | 1502b39634af13cd6f8af882e32e56732c1e1ecd (patch) | |
tree | 7d32db435ef1ede7cec45bec8d7d33f4e4c96a3f | |
parent | 3232d22f5fb66f27945ac05adacaa47f6cc41b0b (diff) | |
download | scummvm-rg350-1502b39634af13cd6f8af882e32e56732c1e1ecd.tar.gz scummvm-rg350-1502b39634af13cd6f8af882e32e56732c1e1ecd.tar.bz2 scummvm-rg350-1502b39634af13cd6f8af882e32e56732c1e1ecd.zip |
Correction
svn-id: r14982
-rw-r--r-- | scumm/script_v7he.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 5b4c3ef07e..1b2af19821 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -416,16 +416,15 @@ int ScummEngine_v7he::getCharsetOffset(int letter) { return 0; ptr += offset; - result = READ_LE_UINT16(ptr + 2); byte start = *ptr; - if (result >= 0x80) { + if (result >= 0x80) result = (result & 0xff) - 256 + start; - } else { - result += start; - }; - return (result); + else + result = (result & 0xff) + start; + + return result; } void ScummEngine_v7he::o7_cursorCommand() { |