aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-02-24 14:29:56 +0000
committerTravis Howell2004-02-24 14:29:56 +0000
commitb52ef6463bfe91044682bda5dbe9e3ca88c78b09 (patch)
treedc677edb6b81f2fabaf18186263e03bccd069776 /scumm
parent43cab33e9829380f9cf3632cab07915110e9966d (diff)
downloadscummvm-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
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v8.cpp5
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) {