diff options
author | Travis Howell | 2004-02-21 02:56:47 +0000 |
---|---|---|
committer | Travis Howell | 2004-02-21 02:56:47 +0000 |
commit | abffa78eca800d0c04adbf716725873f403e55a8 (patch) | |
tree | 33d3351f000253f4508ee009941821bb62486a8b /scumm | |
parent | dfe5828d4fc98a880a7f6de61585c21208b945aa (diff) | |
download | scummvm-rg350-abffa78eca800d0c04adbf716725873f403e55a8.tar.gz scummvm-rg350-abffa78eca800d0c04adbf716725873f403e55a8.tar.bz2 scummvm-rg350-abffa78eca800d0c04adbf716725873f403e55a8.zip |
COMI needs an adjust for VAR_CHARINC writes.
svn-id: r12950
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v8.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 725f8b90c7..30d28e7573 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -422,10 +422,13 @@ void ScummEngine_v8::writeVar(uint var, int value) { if (!(var & 0xF0000000)) { checkRange(_numVariables - 1, 0, var, "Variable %d out of range(w)"); - if (var == VAR_CHARINC && ConfMan.hasKey("talkspeed")) { - int talkspeed = ConfMan.getInt("talkspeed") / 20; - if (talkspeed >= 0 && talkspeed <= 180) + if (var == VAR_CHARINC) { + if (ConfMan.hasKey("talkspeed")) { + int talkspeed = ConfMan.getInt("talkspeed") / 20; + if (talkspeed >= 0 && talkspeed <= 180) VAR(VAR_CHARINC) = talkspeed; + } else + VAR(VAR_CHARINC) = 9 - value; } else _scummVars[var] = value; |