From 3a3698f960608e8777620c9e454d6ed2282a036d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 15 Nov 2008 13:54:16 +0000 Subject: Fix for bug #2251765: FT: Talk speed inconsistency svn-id: r35082 --- engines/scumm/script.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/scumm/script.cpp') diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp index 642627d649..1dbc87dd79 100644 --- a/engines/scumm/script.cpp +++ b/engines/scumm/script.cpp @@ -624,7 +624,12 @@ void ScummEngine::writeVar(uint var, int value) { } if (var == VAR_CHARINC) { - if (ConfMan.hasKey("talkspeed")) { + // Did the user override the talkspeed manually? Then use that. + // Otherwise, use the value specified by the game script. + // Note: To determine whether there was a user override, we only + // look at the target specific settings, assuming that any global + // value is likely to be bogus. See also bug #2251765. + if (ConfMan.hasKey("talkspeed", _targetName)) { value = getTalkDelay(); } else { // Save the new talkspeed value to ConfMan -- cgit v1.2.3