mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +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;
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user