diff options
-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; |