[Scummvm-git-logs] scummvm master -> 808177f8fec17e9f9c1df611df226b5704b9db57

elasota noreply at scummvm.org
Mon Jun 20 18:18:55 UTC 2022


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:
808177f8fe MTROPOLIS: Fix incorrect mToon start frame when rate is negative


Commit: 808177f8fec17e9f9c1df611df226b5704b9db57
    https://github.com/scummvm/scummvm/commit/808177f8fec17e9f9c1df611df226b5704b9db57
Author: elasota (ejlasota at gmail.com)
Date: 2022-06-20T14:18:09-04:00

Commit Message:
MTROPOLIS: Fix incorrect mToon start frame when rate is negative

Changed paths:
    engines/mtropolis/elements.cpp


diff --git a/engines/mtropolis/elements.cpp b/engines/mtropolis/elements.cpp
index 9b4f26fd996..d77f51827d2 100644
--- a/engines/mtropolis/elements.cpp
+++ b/engines/mtropolis/elements.cpp
@@ -1252,7 +1252,11 @@ void MToonElement::render(Window *window) {
 }
 
 VThreadState MToonElement::startPlayingTask(const StartPlayingTaskData &taskData) {
-	_cel = _playRange.min;
+	if (_rateTimes100000 < 0)
+		_cel = _playRange.max;
+	else
+		_cel = _playRange.min;
+
 	_paused = false;
 	_isPlaying = false;	// Reset play state, it starts for real in playMedia
 




More information about the Scummvm-git-logs mailing list