Skip to content

Commit

Permalink
TITANIC: Fix starting queued reverse playing movie clips
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 29, 2016
1 parent f7c7f11 commit 4e903e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/titanic/support/avi_surface.cpp
Expand Up @@ -164,8 +164,8 @@ bool AVISurface::handleEvents(CMovieEventList &events) {
_currentFrame += _isReversed ? -1 : 1;

int newFrame = _currentFrame;
if ((info->_isReversed && newFrame <= info->_endFrame) ||
(!info->_isReversed && newFrame >= info->_endFrame)) {
if ((info->_isReversed && newFrame < info->_endFrame) ||
(!info->_isReversed && newFrame > info->_endFrame)) {
if (info->_isRepeat) {
newFrame = info->_startFrame;
} else {
Expand All @@ -180,6 +180,7 @@ bool AVISurface::handleEvents(CMovieEventList &events) {
// Not empty, so move onto new first one
info = _movieRangeInfo.front();
newFrame = info->_startFrame;
setReversed(info->_isReversed);
}
}
}
Expand Down

0 comments on commit 4e903e7

Please sign in to comment.