KYRA: LoK - Fix chat duration

When both subtitles and voice are enabled use voice duration as in
the original game.
This commit is contained in:
Alexander Korotkov 2024-07-04 02:15:23 +03:00 committed by athrxx
parent ba3a51dbf7
commit fd97ca71f0

View File

@ -100,7 +100,7 @@ void KyraEngine_LoK::waitForChatToFinish(int vocFile, int chatDuration, const ch
_animator->copyChangedObjectsForward(0);
updateTextFade();
if (((chatDuration < (int)(_system->getMillis() - timeAtStart)) && chatDuration != -1 && printText) || (!printText && !snd_voiceIsPlaying()))
if (((chatDuration < (int)(_system->getMillis() - timeAtStart)) && chatDuration != -1 && printText) || (vocFile != -1 && !snd_voiceIsPlaying()))
break;
uint32 nextTime = loopStart + _tickLength;