diff options
author | Paul Gilbert | 2017-09-03 20:09:23 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-03 20:09:23 -0400 |
commit | a2b05b5c6302e8755448de66124fb9be81eee942 (patch) | |
tree | e6bfc1c979647a801d358aa3e3cfcd2c887d4130 | |
parent | e72a1d7c46a352e9d8d7850212275eee78cf4c39 (diff) | |
download | scummvm-rg350-a2b05b5c6302e8755448de66124fb9be81eee942.tar.gz scummvm-rg350-a2b05b5c6302e8755448de66124fb9be81eee942.tar.bz2 scummvm-rg350-a2b05b5c6302e8755448de66124fb9be81eee942.zip |
TITANIC: Fix Doorbot doubletake in the prologue
-rw-r--r-- | engines/titanic/support/avi_surface.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index a7d6ef5fb6..bddbb9808e 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -205,7 +205,14 @@ bool AVISurface::handleEvents(CMovieEventList &events) { // Not empty, so move onto new first one info = _movieRangeInfo.front(); newFrame = info->_startFrame; - setFrameRate(info->_endFrame < info->_startFrame ? -DEFAULT_FPS : DEFAULT_FPS); + bool reversed = info->_endFrame < info->_startFrame; + + if (isReversed() != reversed) + // Direction is different, so force frame seek below + _priorFrame = -1; + + // Set the next clip's direction + setFrameRate(reversed ? -DEFAULT_FPS : DEFAULT_FPS); } } } |