diff options
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r-- | scumm/script_v8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 0d09074430..500ad1b913 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -426,8 +426,8 @@ 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 <= 9) + uint talkspeed = ConfMan.getInt("talkspeed"); + if (talkspeed <= 9) VAR(VAR_CHARINC) = talkspeed; } else VAR(VAR_CHARINC) = (_features & GF_DEMO) ? value : (9 - value); |