mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
PEGASUS: Fix stop time of movies
This commit is contained in:
parent
cd744aa60e
commit
2e2f8d9168
@ -182,6 +182,11 @@ void Movie::checkCallBacks() {
|
||||
uint32 stopTime = _stopTime * getScale() / _stopScale;
|
||||
uint32 actualTime = CLIP<int>(_video->getElapsedTime() * getScale() / 1000, startTime, stopTime);
|
||||
_time = Common::Rational(actualTime, getScale());
|
||||
|
||||
// Stop the video when we go past our end
|
||||
// TODO: Check if this should really be -1
|
||||
if (actualTime >= stopTime - 1)
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user