diff options
author | Travis Howell | 2004-02-24 14:29:56 +0000 |
---|---|---|
committer | Travis Howell | 2004-02-24 14:29:56 +0000 |
commit | b52ef6463bfe91044682bda5dbe9e3ca88c78b09 (patch) | |
tree | dc677edb6b81f2fabaf18186263e03bccd069776 | |
parent | 43cab33e9829380f9cf3632cab07915110e9966d (diff) | |
download | scummvm-rg350-b52ef6463bfe91044682bda5dbe9e3ca88c78b09.tar.gz scummvm-rg350-b52ef6463bfe91044682bda5dbe9e3ca88c78b09.tar.bz2 scummvm-rg350-b52ef6463bfe91044682bda5dbe9e3ca88c78b09.zip |
COMI uses VAR_CHARINC in reverse, so adjust readvar.
svn-id: r13025
-rw-r--r-- | scumm/script_v8.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 36c15eb17e..40db14ace4 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -397,7 +397,10 @@ int ScummEngine_v8::readVar(uint var) { if (!(var & 0xF0000000)) { checkRange(_numVariables - 1, 0, var, "Variable %d out of range(r)"); - return _scummVars[var]; + if (var == VAR_CHARINC) + return (9 - _scummVars[var]); + else + return _scummVars[var]; } if (var & 0x80000000) { |