[Scummvm-git-logs] scummvm master -> 3fba66021097569fd6d5c97b05cb43c3b5150393

bgK bastien.bouclet at gmail.com
Fri Aug 11 08:26:29 CEST 2017


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:
3fba660210 MOHAWK: Riven: Fix pin rotation handle sometimes disappearing


Commit: 3fba66021097569fd6d5c97b05cb43c3b5150393
    https://github.com/scummvm/scummvm/commit/3fba66021097569fd6d5c97b05cb43c3b5150393
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2017-08-11T08:24:34+02:00

Commit Message:
MOHAWK: Riven: Fix pin rotation handle sometimes disappearing

It was due to inaccurate rotation movie bounds.

Fixes #10086.

Changed paths:
    engines/mohawk/riven_stacks/gspit.cpp


diff --git a/engines/mohawk/riven_stacks/gspit.cpp b/engines/mohawk/riven_stacks/gspit.cpp
index 1e3441a..05f46c6 100644
--- a/engines/mohawk/riven_stacks/gspit.cpp
+++ b/engines/mohawk/riven_stacks/gspit.cpp
@@ -95,12 +95,17 @@ void GSpit::xgrotatepins(const ArgumentArray &args) {
 		return;
 
 	uint32 &pinPos = _vm->_vars["gpinpos"];
-	uint32 startTime = (pinPos - 1) * 1200;
 
-	if (pinPos == 4)
+	static const uint32 pinPosTimes[] = {
+			8416, 0, 1216, 2416, 3616, 4846, 6016, 7216
+	};
+
+	uint32 startTime = pinPosTimes[pinPos];
+	pinPos++;
+	uint32 endTime = pinPosTimes[pinPos];
+
+	if (pinPos > 4)
 		pinPos = 1;
-	else
-		pinPos++;
 
 	// Play the rotating sound
 	_vm->_sound->playSound(12);
@@ -109,7 +114,7 @@ void GSpit::xgrotatepins(const ArgumentArray &args) {
 	RivenVideo *video = _vm->_video->openSlot(_vm->_vars["gupmoov"]);
 	video->enable();
 	video->seek(startTime);
-	video->playBlocking(startTime + 1215);
+	video->playBlocking(endTime);
 	video->disable();
 }
 





More information about the Scummvm-git-logs mailing list