TITANIC: Fix Doorbot doubletake in the prologue

This commit is contained in:
Paul Gilbert 2017-09-03 20:09:23 -04:00
parent e72a1d7c46
commit a2b05b5c63

View File

@ -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);
}
}
}