aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v6.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-20 18:17:39 +0000
committerSven Hesse2011-01-20 18:17:39 +0000
commitbb6c230587c65c92e1719809977e4625322dd2cb (patch)
tree7996d697e65930248da1113274b2abad2c87f222 /engines/gob/inter_v6.cpp
parent03415868b07cedd956185c5f5a56ff2daf09c735 (diff)
downloadscummvm-rg350-bb6c230587c65c92e1719809977e4625322dd2cb.tar.gz
scummvm-rg350-bb6c230587c65c92e1719809977e4625322dd2cb.tar.bz2
scummvm-rg350-bb6c230587c65c92e1719809977e4625322dd2cb.zip
GOB: Implement looping live videos
Needed for the buttons in the Playtoons series svn-id: r55359
Diffstat (limited to 'engines/gob/inter_v6.cpp')
-rw-r--r--engines/gob/inter_v6.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/gob/inter_v6.cpp b/engines/gob/inter_v6.cpp
index 17008ce0d2..8916ee246a 100644
--- a/engines/gob/inter_v6.cpp
+++ b/engines/gob/inter_v6.cpp
@@ -153,8 +153,10 @@ void Inter_v6::o6_playVmdOrMusic() {
} else if (props.lastFrame <= -10) {
_vm->_vidPlayer->closeVideo();
- if (props.lastFrame <= -100)
+ if (props.lastFrame <= -100) {
+ props.loop = true;
props.lastFrame += 100;
+ }
if (((-props.lastFrame) % 10 == 3) && (props.lastFrame <= -20))
_vm->_sound->bgPlay(fileName, SOUND_WAV);