From e8fb4b489856d78aff6ddd8573a16bc0bdfbbec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Mon, 13 Sep 2021 06:54:58 +0200 Subject: [PATCH] BURIED: Fix door opening transition to Da Vinci study (bug 12885) Integrated upstreams code for playing the correct animation when opening the door to Da Vinci's study. I take no credit for this, since the complete solution was just handed to me and I could never have figured it out on my own. --- engines/buried/environ/da_vinci.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engines/buried/environ/da_vinci.cpp b/engines/buried/environ/da_vinci.cpp index 32bf47bec69..0054055d8cc 100644 --- a/engines/buried/environ/da_vinci.cpp +++ b/engines/buried/environ/da_vinci.cpp @@ -829,15 +829,18 @@ int CodexTowerOutsideDoor::mouseUp(Window *viewWindow, const Common::Point &poin DestinationScene destData; destData.destinationScene = _staticData.location; destData.destinationScene.depth = 1; - destData.transitionType = TRANSITION_VIDEO; - destData.transitionData = 2; - destData.transitionStartFrame = -1; - destData.transitionLength = -1; + destData.transitionType = TRANSITION_WALK; + destData.transitionData = 11; + destData.transitionStartFrame = 196; + destData.transitionLength = 20; // Play a different video otherwise if (((SceneViewWindow *)viewWindow)->getGlobalFlags().dsCTViewedAgent3 == 0) { destData.transitionType = TRANSITION_VIDEO; destData.transitionData = 1; + destData.transitionStartFrame = -1; + destData.transitionLength = -1; + ((SceneViewWindow *)viewWindow)->getGlobalFlags().dsCTViewedAgent3 = 1; } ((SceneViewWindow *)viewWindow)->moveToDestination(destData);