diff options
-rw-r--r-- | engines/tucker/tucker.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index 6e766aac16..ad10b5b73a 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -556,13 +556,7 @@ void TuckerEngine::mainLoop() { if (_inputKeys[kInputKeyToggleTextSpeech]) { _inputKeys[kInputKeyToggleTextSpeech] = false; if ((_gameFlags & kGameFlagNoSubtitles) == 0) { - if (_displaySpeechText) { - _displaySpeechText = false; -// kDefaultCharSpeechSoundCounter = 1; - } else { - _displaySpeechText = true; -// kDefaultCharSpeechSoundCounter = 70; - } + _displaySpeechText = !_displaySpeechText; ConfMan.setBool("subtitles", _displaySpeechText); } } @@ -2889,7 +2883,11 @@ void TuckerEngine::updateCharSpeechSound(bool displayText) { if (_charSpeechSoundCounter == 0) { return; } - --_charSpeechSoundCounter; + if (_displaySpeechText) { + _charSpeechSoundCounter = 0; + } else { + --_charSpeechSoundCounter; + } if (_charSpeechSoundCounter == 0) { _charSpeechSoundCounter = isSpeechSoundPlaying() ? 1 : 0; if (_charSpeechSoundCounter == 0) { |