diff options
author | Eugene Sandulenko | 2017-02-21 09:12:46 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-21 09:12:46 +0100 |
commit | 3873730ecf9953150262927318f6e829a6bbd48e (patch) | |
tree | 3805281850054d710e84e6e0b6baca96cd7e70b2 /engines/director | |
parent | f189cb15302ad3d0ed6dd24a9cdcbe896d0461c6 (diff) | |
download | scummvm-rg350-3873730ecf9953150262927318f6e829a6bbd48e.tar.gz scummvm-rg350-3873730ecf9953150262927318f6e829a6bbd48e.tar.bz2 scummvm-rg350-3873730ecf9953150262927318f6e829a6bbd48e.zip |
DIRECTOR: Properly load Movie Script for D2 and D3
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/score.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index d7ca7bf454..975c6efe33 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -160,10 +160,13 @@ void Score::loadArchive() { setSpriteCasts(); - //Common::Array<uint16> stxt = _movieArchive->getResourceIDList(MKTAG('S','T','X','T')); - //if (stxt.size() > 0) { - // loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *stxt.begin())); - //} + // Try to load movie script, it sits in resource A11 + if (_vm->getVersion() <= 3) { + Common::Array<uint16> stxt = _movieArchive->getResourceIDList(MKTAG('S','T','X','T')); + if (stxt.size() > 0) { + loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *stxt.begin())); + } + } } Score::~Score() { @@ -869,7 +872,6 @@ void Score::startLoop() { _stopPlay = false; _nextFrameTime = 0; - _lingo->processEvent(kEventStartMovie, kMovieScript, 0); _frames[_currentFrame]->prepareFrame(this); while (!_stopPlay && _currentFrame < _frames.size()) { |