Skip to content

Commit

Permalink
TUCKER: fix #2628056 - Text Dialogue is out of sync
Browse files Browse the repository at this point in the history
always synchronize text with speech sound. Note, some
subtitles present in the datafiles are inconsistent
(written text different from spoken).
  • Loading branch information
cyxx committed Feb 18, 2011
1 parent da77a05 commit d9140ab
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions engines/tucker/tucker.cpp
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit d9140ab

Please sign in to comment.