diff options
author | Le Philousophe | 2019-05-05 13:16:52 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | adf6ab006cc7b2031f428cf166d0aeaebd3342b7 (patch) | |
tree | 492f7d4744a7c93e6bf4004815d6a7cef1aca624 /engines/cryomni3d | |
parent | c18f209c900b8fb2190d799bf5dea50461e1ecc8 (diff) | |
download | scummvm-rg350-adf6ab006cc7b2031f428cf166d0aeaebd3342b7.tar.gz scummvm-rg350-adf6ab006cc7b2031f428cf166d0aeaebd3342b7.tar.bz2 scummvm-rg350-adf6ab006cc7b2031f428cf166d0aeaebd3342b7.zip |
CRYOMNI3D: Use fabs instead of abs
This should correct LLVM warning
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r-- | engines/cryomni3d/omni3d.cpp | 4 | ||||
-rw-r--r-- | engines/cryomni3d/versailles/engine.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/cryomni3d/omni3d.cpp b/engines/cryomni3d/omni3d.cpp index 5c6d6db21c..d0169a42fd 100644 --- a/engines/cryomni3d/omni3d.cpp +++ b/engines/cryomni3d/omni3d.cpp @@ -90,10 +90,10 @@ void Omni3DManager::updateCoords(int xDelta, int yDelta, bool useOldSpeed) { _ySpeed *= 0.6; if (useOldSpeed) { - if (abs(_xSpeed) < 0.001) { + if (fabs(_xSpeed) < 0.001) { _xSpeed = 0.; } - if (abs(_ySpeed) < 0.001) { + if (fabs(_ySpeed) < 0.001) { _ySpeed = 0.; } } diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp index d68cfaa0ec..87967ccaaa 100644 --- a/engines/cryomni3d/versailles/engine.cpp +++ b/engines/cryomni3d/versailles/engine.cpp @@ -1322,7 +1322,7 @@ void CryOmni3DEngine_Versailles::animateWarpTransition(const Transition *transit // TODO: countdown g_system->updateScreen(); - if (abs(oldDeltaAlpha - deltaAlpha) < 0.001 && abs(oldDeltaBeta - deltaBeta) < 0.001) { + if (fabs(oldDeltaAlpha - deltaAlpha) < 0.001 && fabs(oldDeltaBeta - deltaBeta) < 0.001) { exit = true; } oldDeltaAlpha = deltaAlpha; |