From ece050e26c8397e32038662fcdc451bfa6e28351 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Wed, 9 Feb 2011 20:52:46 +0000 Subject: MOHAWK: Complete Myst opcode 209, fixing the bookcase door lintel updates svn-id: r55861 --- engines/mohawk/myst_stacks/myst.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engines') diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp index 02f899e419..3bcc83527b 100644 --- a/engines/mohawk/myst_stacks/myst.cpp +++ b/engines/mohawk/myst_stacks/myst.cpp @@ -3230,9 +3230,25 @@ void MystScriptParser_Myst::libraryBookcaseTransform_run(void) { _libraryBookcaseChanged = false; _libraryBookcaseMoving = false; + _vm->_cursor->hideCursor(); + // Play transform sound and video _vm->_sound->replaceSoundMyst(_libraryBookcaseSoundId); _libraryBookcaseMovie->playMovie(); + + if (_state.libraryBookcaseDoor) { + _vm->_gfx->copyImageSectionToBackBuffer(11179, Common::Rect(0, 0, 106, 81), Common::Rect(0, 72, 106, 153)); + _vm->_gfx->runTransition(6, Common::Rect(0, 72, 106, 153), 5, 10); + _vm->_sound->playSoundBlocking(7348); + _vm->_sound->replaceBackgroundMyst(4348, 16384); + } else { + _vm->_gfx->copyImageSectionToBackBuffer(11178, Common::Rect(0, 0, 107, 67), Common::Rect(437, 84, 544, 151)); + _vm->_gfx->copyBackBufferToScreen(Common::Rect(437, 84, 544, 151)); + _vm->_sound->playSoundBlocking(7348); + _vm->_sound->replaceBackgroundMyst(4334, 16384); + } + + _vm->_cursor->showCursor(); } } -- cgit v1.2.3