mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
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.
This commit is contained in:
parent
8cf46e2f7f
commit
e8fb4b4898
@ -829,15 +829,18 @@ int CodexTowerOutsideDoor::mouseUp(Window *viewWindow, const Common::Point &poin
|
|||||||
DestinationScene destData;
|
DestinationScene destData;
|
||||||
destData.destinationScene = _staticData.location;
|
destData.destinationScene = _staticData.location;
|
||||||
destData.destinationScene.depth = 1;
|
destData.destinationScene.depth = 1;
|
||||||
destData.transitionType = TRANSITION_VIDEO;
|
destData.transitionType = TRANSITION_WALK;
|
||||||
destData.transitionData = 2;
|
destData.transitionData = 11;
|
||||||
destData.transitionStartFrame = -1;
|
destData.transitionStartFrame = 196;
|
||||||
destData.transitionLength = -1;
|
destData.transitionLength = 20;
|
||||||
|
|
||||||
// Play a different video otherwise
|
// Play a different video otherwise
|
||||||
if (((SceneViewWindow *)viewWindow)->getGlobalFlags().dsCTViewedAgent3 == 0) {
|
if (((SceneViewWindow *)viewWindow)->getGlobalFlags().dsCTViewedAgent3 == 0) {
|
||||||
destData.transitionType = TRANSITION_VIDEO;
|
destData.transitionType = TRANSITION_VIDEO;
|
||||||
destData.transitionData = 1;
|
destData.transitionData = 1;
|
||||||
|
destData.transitionStartFrame = -1;
|
||||||
|
destData.transitionLength = -1;
|
||||||
|
((SceneViewWindow *)viewWindow)->getGlobalFlags().dsCTViewedAgent3 = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
((SceneViewWindow *)viewWindow)->moveToDestination(destData);
|
((SceneViewWindow *)viewWindow)->moveToDestination(destData);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user