From d8e650b4cbfd76ed448e5ebc2caab3db5b1d1d55 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 4 Nov 2014 11:52:09 +0200 Subject: GROOVIE: Handle flag 2 for V2 games (show a whole overlay video) --- engines/groovie/roq.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/groovie/roq.cpp') diff --git a/engines/groovie/roq.cpp b/engines/groovie/roq.cpp index 34689d8aa2..1996181571 100644 --- a/engines/groovie/roq.cpp +++ b/engines/groovie/roq.cpp @@ -77,6 +77,10 @@ uint16 ROQPlayer::loadInternal() { debug(1, " <- 0 "); } + // Flags: + // - 2 For overlay videos, show the whole video + _flagTwo = ((_flags & (1 << 2)) != 0); + // Begin reading the file debugC(1, kDebugVideo, "Groovie::ROQ: Loading video"); @@ -177,8 +181,9 @@ bool ROQPlayer::playFrameInternal() { _dirty = false; } - // Return whether the video has ended - return _file->eos(); + // Report the end of the video if we reached the end of the file or if we + // just wanted to play one frame. + return _file->eos() || (_alpha && !_flagTwo); } bool ROQPlayer::readBlockHeader(ROQBlockHeader &blockHeader) { -- cgit v1.2.3