diff options
author | Eugene Sandulenko | 2017-02-04 15:16:25 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-04 15:17:13 +0100 |
commit | 6d8d398cf751eb9fe2242ce259a08418c041a6d6 (patch) | |
tree | 3c36dd17b828f49121e48761de8128c455b0ef10 /engines/director/score.cpp | |
parent | e15f2e7d2dfa37a0a8b13cde2b464cddc52bad12 (diff) | |
download | scummvm-rg350-6d8d398cf751eb9fe2242ce259a08418c041a6d6.tar.gz scummvm-rg350-6d8d398cf751eb9fe2242ce259a08418c041a6d6.tar.bz2 scummvm-rg350-6d8d398cf751eb9fe2242ce259a08418c041a6d6.zip |
DIRECTOR: Implemented pausing/continuing of playback
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r-- | engines/director/score.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 1e9791637f..deff766f72 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -994,8 +994,11 @@ void Score::update() { } } - _currentFrame++; - if (_currentFrame >= _frames.size()) return; + if (!g_director->_playbackPaused) + _currentFrame++; + + if (_currentFrame >= _frames.size()) + return; _frames[_currentFrame]->prepareFrame(this); // Stage is drawn between the prepareFrame and enterFrame events (Lingo in a Nutshell) @@ -1030,6 +1033,7 @@ void Score::update() { } } } + _nextFrameTime = g_system->getMillis() + (float)_currentFrameRate / 60 * 1000; } |