[Scummvm-cvs-logs] scummvm master -> d983b94bb5fcf378f8e9686624b2a047789b006c

clone2727 clone2727 at gmail.com
Thu Jan 3 19:23:38 CET 2013


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:
d983b94bb5 MOHAWK: Silence warnings


Commit: d983b94bb5fcf378f8e9686624b2a047789b006c
    https://github.com/scummvm/scummvm/commit/d983b94bb5fcf378f8e9686624b2a047789b006c
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2013-01-03T10:21:38-08:00

Commit Message:
MOHAWK: Silence warnings

Changed paths:
    engines/mohawk/myst_stacks/mechanical.cpp



diff --git a/engines/mohawk/myst_stacks/mechanical.cpp b/engines/mohawk/myst_stacks/mechanical.cpp
index ce6f902..43e9bcf 100644
--- a/engines/mohawk/myst_stacks/mechanical.cpp
+++ b/engines/mohawk/myst_stacks/mechanical.cpp
@@ -837,7 +837,7 @@ void Mechanical::fortressRotation_run() {
 
 		newRate = CLIP<double>(newRate, -2.5, 2.5);
 
-		_vm->_video->setVideoRate(gears, Common::Rational(newRate * 1000.0, 1000));
+		_vm->_video->setVideoRate(gears, Common::Rational((int)(newRate * 1000.0), 1000));
 
 		_gearsWereRunning = true;
 	} else if (_gearsWereRunning) {
@@ -968,7 +968,7 @@ void Mechanical::fortressSimulation_run() {
 
 			newRate = CLIP<double>(newRate, -2.5, 2.5);
 
-			_vm->_video->setVideoRate(holo, Common::Rational(newRate * 1000.0, 1000));
+			_vm->_video->setVideoRate(holo, Common::Rational((int)(newRate * 1000.0), 1000));
 
 			_gearsWereRunning = true;
 		} else if (_gearsWereRunning) {






More information about the Scummvm-git-logs mailing list