[Scummvm-git-logs] scummvm master -> 3c8a0a3d2ea4cf67960a23b77460e6cf95c64d60
bgK
bastien.bouclet at gmail.com
Sat Sep 1 06:27:36 CEST 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3c8a0a3d2e MOHAWK: RIVEN: Wait for the sound track to end after the credit
Commit: 3c8a0a3d2ea4cf67960a23b77460e6cf95c64d60
https://github.com/scummvm/scummvm/commit/3c8a0a3d2ea4cf67960a23b77460e6cf95c64d60
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2018-09-01T06:27:56+02:00
Commit Message:
MOHAWK: RIVEN: Wait for the sound track to end after the credit
Changed paths:
engines/mohawk/riven_graphics.cpp
engines/mohawk/riven_stack.cpp
diff --git a/engines/mohawk/riven_graphics.cpp b/engines/mohawk/riven_graphics.cpp
index bc6ebfc..084019d 100644
--- a/engines/mohawk/riven_graphics.cpp
+++ b/engines/mohawk/riven_graphics.cpp
@@ -682,7 +682,7 @@ void RivenGraphics::updateCredits() {
runScheduledTransition();
} else {
- // Otheriwse, we're scrolling
+ // Otherwise, we're scrolling
// This is done by 1) moving the screen up one row and
// 2) adding a new row at the bottom that is the current row of the current image or
// not and it defaults to being empty (a black row).
diff --git a/engines/mohawk/riven_stack.cpp b/engines/mohawk/riven_stack.cpp
index abe7e5a..17baf94 100644
--- a/engines/mohawk/riven_stack.cpp
+++ b/engines/mohawk/riven_stack.cpp
@@ -237,7 +237,7 @@ void RivenStack::runCredits(uint16 video, uint32 delay, uint32 videoFrameCountOv
frameCount = videoPtr->getFrameCount();
}
- while (!_vm->hasGameEnded() && _vm->_gfx->getCurCreditsImage() <= kRivenCreditsLastImage) {
+ while (!_vm->hasGameEnded() && !videoPtr->endOfVideo()) {
if (videoPtr->getCurFrame() >= frameCount - 1) {
if (nextCreditsFrameStart == 0) {
videoPtr->disable();
@@ -258,21 +258,6 @@ void RivenStack::runCredits(uint16 video, uint32 delay, uint32 videoFrameCountOv
_vm->doFrame();
}
- // Let the last frame of credits keep scrolling till black
- uint currFrameTime = _vm->getTotalPlayTime();
- nextCreditsFrameStart = currFrameTime + 1000 / 60;
- uint endFrameTime = currFrameTime + 8000; // 8 seconds
- uint sleepTime = 0;
-
- while(currFrameTime < endFrameTime) {
- if (sleepTime > 0)
- _vm->delay(sleepTime);
- nextCreditsFrameStart += 1000 / 60;
- _vm->_gfx->updateCredits();
- _vm->doFrame();
- currFrameTime = _vm->getTotalPlayTime();
- sleepTime = nextCreditsFrameStart - currFrameTime;
- }
_vm->setGameEnded();
}
More information about the Scummvm-git-logs
mailing list