aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-10-28 21:50:12 -0400
committerPaul Gilbert2016-10-28 21:50:12 -0400
commit4e903e7ac7d6cd02484b9692aae6dfe0f2af068f (patch)
tree4117069dcc069f751fbf1b8f75ec98c01a71be9e /engines
parentf7c7f11435c96781d02c8c44c29e9da08392eec2 (diff)
downloadscummvm-rg350-4e903e7ac7d6cd02484b9692aae6dfe0f2af068f.tar.gz
scummvm-rg350-4e903e7ac7d6cd02484b9692aae6dfe0f2af068f.tar.bz2
scummvm-rg350-4e903e7ac7d6cd02484b9692aae6dfe0f2af068f.zip
TITANIC: Fix starting queued reverse playing movie clips
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/support/avi_surface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp
index 07458812b9..8d89ef71df 100644
--- a/engines/titanic/support/avi_surface.cpp
+++ b/engines/titanic/support/avi_surface.cpp
@@ -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 {
@@ -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);
}
}
}