aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-12 08:12:49 -0500
committerPaul Gilbert2016-11-12 08:12:49 -0500
commitb7469085b596e3d2fc330fe23ec60c76116c2ed7 (patch)
tree24a90765c5840cee93657b0cddb6f0a8cb467bc4 /engines/titanic/support
parenta36039f9fe896241bddc1d0015c8d6f1cfaa5039 (diff)
downloadscummvm-rg350-b7469085b596e3d2fc330fe23ec60c76116c2ed7.tar.gz
scummvm-rg350-b7469085b596e3d2fc330fe23ec60c76116c2ed7.tar.bz2
scummvm-rg350-b7469085b596e3d2fc330fe23ec60c76116c2ed7.zip
TITANIC: Fix not being able to leave chicken dispensor
Diffstat (limited to 'engines/titanic/support')
-rw-r--r--engines/titanic/support/avi_surface.cpp2
-rw-r--r--engines/titanic/support/movie.cpp8
2 files changed, 4 insertions, 6 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp
index 525c6513dd..361982339d 100644
--- a/engines/titanic/support/avi_surface.cpp
+++ b/engines/titanic/support/avi_surface.cpp
@@ -175,7 +175,7 @@ bool AVISurface::handleEvents(CMovieEventList &events) {
delete info;
if (_movieRangeInfo.empty()) {
- // NO more ranges, so stop playback
+ // No more ranges, so stop playback
stop();
} else {
// Not empty, so move onto new first one
diff --git a/engines/titanic/support/movie.cpp b/engines/titanic/support/movie.cpp
index 949ed62fca..1bdcdee6da 100644
--- a/engines/titanic/support/movie.cpp
+++ b/engines/titanic/support/movie.cpp
@@ -164,17 +164,15 @@ bool OSMovie::handleEvents(CMovieEventList &events) {
if (!_aviSurface.isPlaying())
return false;
- if (!_aviSurface.isNextFrame())
- return _aviSurface.isPlaying();
// Handle updating the frame
while (_aviSurface.isPlaying() && _aviSurface.isNextFrame()) {
_aviSurface.handleEvents(events);
_videoSurface->setTransparencySurface(_aviSurface.getSecondarySurface());
- }
- // Flag there's a video frame
- _hasVideoFrame = true;
+ // Flag there's a video frame
+ _hasVideoFrame = true;
+ }
return _aviSurface.isPlaying();
}