aboutsummaryrefslogtreecommitdiff
path: root/engines/griffon/input.cpp
diff options
context:
space:
mode:
authorCameron Cawley2019-11-16 18:02:52 +0000
committerEugene Sandulenko2019-11-17 22:32:39 +0100
commitc5a5e0f68a8d740f37f234e773988e8f58273466 (patch)
treeacafb82d05949ccb29720c6634eabfc8bda3b08e /engines/griffon/input.cpp
parent397a29a5a26c9b3889fa7e47ecd4240d5488c2f9 (diff)
downloadscummvm-rg350-c5a5e0f68a8d740f37f234e773988e8f58273466.tar.gz
scummvm-rg350-c5a5e0f68a8d740f37f234e773988e8f58273466.tar.bz2
scummvm-rg350-c5a5e0f68a8d740f37f234e773988e8f58273466.zip
GRIFFON: Replace use of abs() with ABS()
Diffstat (limited to 'engines/griffon/input.cpp')
-rw-r--r--engines/griffon/input.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/griffon/input.cpp b/engines/griffon/input.cpp
index 7bb33f7ddc..64c260b9c4 100644
--- a/engines/griffon/input.cpp
+++ b/engines/griffon/input.cpp
@@ -503,16 +503,16 @@ void GriffonEngine::handleWalking() {
int ydif = _player.py - npy;
if (_player.walkDir == 0) {
- if (abs(xdif) <= 8 && ydif > 0 && ydif < 8)
+ if (ABS(xdif) <= 8 && ydif > 0 && ydif < 8)
_npcInfo[i].y -= spd;
} else if (_player.walkDir == 1) {
- if (abs(xdif) <= 8 && ydif < 0 && ydif > -8)
+ if (ABS(xdif) <= 8 && ydif < 0 && ydif > -8)
_npcInfo[i].y += spd;
} else if (_player.walkDir == 2) {
- if (abs(ydif) <= 8 && xdif > 0 && xdif < 8)
+ if (ABS(ydif) <= 8 && xdif > 0 && xdif < 8)
_npcInfo[i].x -= spd;
} else if (_player.walkDir == 3) {
- if (abs(ydif) <= 8 && xdif < 0 && xdif > -8)
+ if (ABS(ydif) <= 8 && xdif < 0 && xdif > -8)
_npcInfo[i].x += spd;
}