diff options
author | Matthew Hoops | 2013-01-03 13:21:38 -0500 |
---|---|---|
committer | Matthew Hoops | 2013-01-03 13:21:38 -0500 |
commit | d983b94bb5fcf378f8e9686624b2a047789b006c (patch) | |
tree | 2b5dd745a6b32a5c735f58d8f432957ed17b8848 | |
parent | ad36fb3366a68f6e49f00063371ca0ab6e02b929 (diff) | |
download | scummvm-rg350-d983b94bb5fcf378f8e9686624b2a047789b006c.tar.gz scummvm-rg350-d983b94bb5fcf378f8e9686624b2a047789b006c.tar.bz2 scummvm-rg350-d983b94bb5fcf378f8e9686624b2a047789b006c.zip |
MOHAWK: Silence warnings
-rw-r--r-- | engines/mohawk/myst_stacks/mechanical.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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) { |