From cf1171d4d9b43eba525439da82db16cd4aac0414 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 1 Jan 2018 19:57:03 +0100 Subject: MOHAWK: RIVEN: Rewind videos that are played until their end When videos are skipped, they would sometimes not quite be seeked to the last frame. In that case, when they are played again without being restarted, they would end immediatly. Now videos are automatically rewinded when they end or are skipped so that they always start from the beginning when played again. Fixes #10389. --- engines/mohawk/riven_video.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/mohawk/riven_video.cpp') diff --git a/engines/mohawk/riven_video.cpp b/engines/mohawk/riven_video.cpp index 14af3e566b..9bd185ed5d 100644 --- a/engines/mohawk/riven_video.cpp +++ b/engines/mohawk/riven_video.cpp @@ -255,6 +255,7 @@ void RivenVideo::playBlocking(int32 endTime) { if (playTillEnd) { disable(); stop(); + seek(0); } // Execute the stored opcode -- cgit v1.2.3