SCUMM: FT: fix bug #12022

This commit is contained in:
Andrea Boscarino 2020-12-25 10:41:21 +01:00 committed by Eugene Sandulenko
parent 434d1f37f9
commit 054c970598

View File

@ -391,7 +391,18 @@ void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
_insane->escapeKeyHandler();
else
_smushVideoShouldFinish = true;
_skipVideo = true;
// WORKAROUND bug #12022: For some reason, skipping the cutscene in which Ben fires up
// his bike (after retrieving the keys from the bartender), will outright skip the first
// bike fight sequence. Because of this, the script which handles playing ambient and wind SFX
// outside the bar is never stopped, so those SFX are unintentionally played throughout the
// rest of the game.
// This fix produces the intended behaviour from the original interpreter.
if (_game.id == GID_FT && vm.slot[_currentScript].number == 65 && _currentRoom == 6) {
_skipVideo = false;
} else {
_skipVideo = true;
}
} else {
abortCutscene();
}