From d983b94bb5fcf378f8e9686624b2a047789b006c Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 3 Jan 2013 13:21:38 -0500 Subject: MOHAWK: Silence warnings --- engines/mohawk/myst_stacks/mechanical.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mohawk') diff --git a/engines/mohawk/myst_stacks/mechanical.cpp b/engines/mohawk/myst_stacks/mechanical.cpp index ce6f902851..43e9bcfed5 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(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(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) { -- cgit v1.2.3