diff options
author | Travis Howell | 2004-02-21 03:11:40 +0000 |
---|---|---|
committer | Travis Howell | 2004-02-21 03:11:40 +0000 |
commit | 0bb0d3a12bed79a340d91d9650b269e20200d9c9 (patch) | |
tree | 3cb97aa255a5c91338cd6cdb31fb8c271b480564 /scumm | |
parent | abffa78eca800d0c04adbf716725873f403e55a8 (diff) | |
download | scummvm-rg350-0bb0d3a12bed79a340d91d9650b269e20200d9c9.tar.gz scummvm-rg350-0bb0d3a12bed79a340d91d9650b269e20200d9c9.tar.bz2 scummvm-rg350-0bb0d3a12bed79a340d91d9650b269e20200d9c9.zip |
Adjust again for comi demo.
svn-id: r12951
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v8.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 30d28e7573..feffa155b5 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -425,10 +425,10 @@ void ScummEngine_v8::writeVar(uint var, int value) { if (var == VAR_CHARINC) { if (ConfMan.hasKey("talkspeed")) { int talkspeed = ConfMan.getInt("talkspeed") / 20; - if (talkspeed >= 0 && talkspeed <= 180) - VAR(VAR_CHARINC) = talkspeed; + if (talkspeed >= 0 && talkspeed <= 9) + VAR(VAR_CHARINC) = talkspeed; } else - VAR(VAR_CHARINC) = 9 - value; + VAR(VAR_CHARINC) = (_features & GF_DEMO) ? value : (9 - value); } else _scummVars[var] = value; |