diff options
author | Matthew Hoops | 2014-06-01 17:28:19 -0400 |
---|---|---|
committer | Matthew Hoops | 2014-06-01 17:28:34 -0400 |
commit | 379aadb851f36594d46db46f8715bffa5d62c983 (patch) | |
tree | 9653a3c9963f36e7cf799783464da7ce94164b59 /engines/mads | |
parent | d5b5d4b5454d52de32f9e1fecf6e3fa47aa798c0 (diff) | |
download | scummvm-rg350-379aadb851f36594d46db46f8715bffa5d62c983.tar.gz scummvm-rg350-379aadb851f36594d46db46f8715bffa5d62c983.tar.bz2 scummvm-rg350-379aadb851f36594d46db46f8715bffa5d62c983.zip |
MADS: Silence gcc conversion warnings
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/player.cpp | 2 | ||||
-rw-r--r-- | engines/mads/rails.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp index a78d35d77f..bde313af8d 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -648,7 +648,7 @@ void Player::startMovement() { break; } - _totalDistance = sqrt((double)(xAmt100 * xAmt100 + yAmt100 * yAmt100)); + _totalDistance = (int)sqrt((double)(xAmt100 * xAmt100 + yAmt100 * yAmt100)); _posDiff.x = xDiff + 1; _posDiff.y = yDiff + 1; _posChange.x = xDiff; diff --git a/engines/mads/rails.cpp b/engines/mads/rails.cpp index 7f8a56d21b..322e6e7cb3 100644 --- a/engines/mads/rails.cpp +++ b/engines/mads/rails.cpp @@ -201,7 +201,7 @@ void Rails::setNodePosition(int nodeIndex, const Common::Point &pt) { int xDiff = ABS(_nodes[idx]._walkPos.x - pt.x); int yDiff = ABS(_nodes[idx]._walkPos.y - pt.y); - hypotenuse = sqrt((double)(xDiff * xDiff + yDiff * yDiff)); + hypotenuse = (int)sqrt((double)(xDiff * xDiff + yDiff * yDiff)); if (hypotenuse >= 0x3FFF) // Shouldn't ever be this large |