Don't wait for the lead-out sound to finish when playing the "shaman"

cutscene, as it's obviously meant to blend in with the rest of the game.

svn-id: r17791
This commit is contained in:
Torbjörn Andersson 2005-04-24 15:38:53 +00:00
parent 59f6002b03
commit 4cdcb0b049

View File

@ -207,10 +207,15 @@ int32 MoviePlayer::play(const char *filename, MovieTextObject *text[], int32 lea
_snd->stopHandle(leadInHandle);
// Wait for the lead-out to stop, if there is any.
while (_vm->_mixer->isSoundHandleActive(_leadOutHandle)) {
_vm->_screen->updateDisplay();
_vm->_system->delayMillis(30);
// Wait for the lead-out to stop, if there is any. Though don't do it
// for the "shaman" cutscene as it's obviously meant to blend into the
// rest of the game, and the lead-out goes on for a long time.
if (scumm_stricmp(filename, "shaman") != 0) {
while (_vm->_mixer->isSoundHandleActive(_leadOutHandle)) {
_vm->_screen->updateDisplay();
_vm->_system->delayMillis(30);
}
}
if (leadInRes)