diff options
author | athrxx | 2013-04-14 01:26:37 +0200 |
---|---|---|
committer | athrxx | 2013-04-14 13:12:09 +0200 |
commit | 35ac7d8683d2ceecd116fb0729190687bb553985 (patch) | |
tree | ae9d59dad7cd7230c5b5d90d8c357e68e1ce166b | |
parent | 66a3b2b2accffb28b6d4dcb17b8218ab8fb40d66 (diff) | |
download | scummvm-rg350-35ac7d8683d2ceecd116fb0729190687bb553985.tar.gz scummvm-rg350-35ac7d8683d2ceecd116fb0729190687bb553985.tar.bz2 scummvm-rg350-35ac7d8683d2ceecd116fb0729190687bb553985.zip |
KYRA: fix bug #3610247
(KYRA2: Intro doesn't skip righ/Game won't start on first run)
-rw-r--r-- | engines/kyra/sequences_hof.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp index 231337e6d4..e70bbca88b 100644 --- a/engines/kyra/sequences_hof.cpp +++ b/engines/kyra/sequences_hof.cpp @@ -615,6 +615,8 @@ void SeqPlayer_HOF::runLoop() { if (_vm->gameFlags().isDemo && !_vm->gameFlags().isTalkie) _screen->fadeToBlack(); + else if (!_isFinale && !_startupSaveLoadable) + _result = 1; if (!_result) delayTicks(75); @@ -690,8 +692,6 @@ void SeqPlayer_HOF::playScenes() { _screen->updateScreen(); } - //_screen->copyPage(2, 6); - if (sq.flags & 1) { playAnimation(&anim, sq.startFrame, sq.numFrames, sq.duration, sq.xPos, sq.yPos, _config->seqProc[_curScene], &_screen->getPalette(1), &_screen->getPalette(0), 30, 0); anim.close(); @@ -793,11 +793,9 @@ bool SeqPlayer_HOF::checkPlaybackStatus() { doTransition(0); fadeOutMusic(); _abortPlayback = true; - } else { - return true; } - return false; + return true; } void SeqPlayer_HOF::doTransition(int type) { @@ -1778,15 +1776,19 @@ int SeqPlayer_HOF::cbHOF_title(WSAMovie_v2 *wsaObj, int x, int y, int frm) { if (_result == 1) { _curScene = _lastScene; _preventLooping = true; - } else { - setCountDown(200); } - if (_result == 4) + if (_result == 2) { + _result = 0; + } else if (_result == 4) { + setCountDown(200); _vm->quitGame(); + } _screen->hideMouse(); _screen->setCurPage(cp); + } else if (frm == 25) { + setCountDown(200); } return 0; |