aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/omni3d.cpp
diff options
context:
space:
mode:
authorLe Philousophe2019-05-05 13:16:52 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commitadf6ab006cc7b2031f428cf166d0aeaebd3342b7 (patch)
tree492f7d4744a7c93e6bf4004815d6a7cef1aca624 /engines/cryomni3d/omni3d.cpp
parentc18f209c900b8fb2190d799bf5dea50461e1ecc8 (diff)
downloadscummvm-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/omni3d.cpp')
-rw-r--r--engines/cryomni3d/omni3d.cpp4
1 files changed, 2 insertions, 2 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.;
}
}