From 8a372eaf7169a67af984380e0204808da4feeee4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 26 Aug 2016 18:17:04 +0200 Subject: DIRECTOR: Execute proper script on frames. This fixes the playback --- engines/director/frame.cpp | 2 ++ engines/director/score.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 55d5ebd672..0ede871da8 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -77,6 +77,8 @@ Frame::Frame(const Frame &frame) { _blend = frame._blend; _palette = new PaletteInfo(); + debugC(1, kDebugLoading, "Frame. action: %d transType: %d transDuration: %d", _actionId, _transType, _transDuration); + _sprites.resize(CHANNEL_COUNT); for (uint16 i = 0; i < CHANNEL_COUNT; i++) { diff --git a/engines/director/score.cpp b/engines/director/score.cpp index c07804b5a1..9dd8cd8ba2 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -752,8 +752,8 @@ void Score::update() { _surface->copyFrom(*_trailSurface); //Enter and exit from previous frame (Director 4) - _lingo->processEvent(kEventEnterFrame, _currentFrame); - _lingo->processEvent(kEventExitFrame, _currentFrame); + _lingo->processEvent(kEventEnterFrame, _frames[_currentFrame]->_actionId); + _lingo->processEvent(kEventExitFrame, _frames[_currentFrame]->_actionId); //TODO Director 6 - another order -- cgit v1.2.3