diff options
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/motion.cpp | 2 | ||||
-rw-r--r-- | engines/agi/op_cmd.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/motion.cpp b/engines/agi/motion.cpp index 864953a81f..3c88c01054 100644 --- a/engines/agi/motion.cpp +++ b/engines/agi/motion.cpp @@ -110,7 +110,7 @@ void AgiEngine::motionFollowEgo(VtEntry *v) { while ((v->direction = _rnd->getRandomNumber(8)) == 0) { } - d = (abs(egoY - objY) + abs(egoX - objX)) / 2; + d = (ABS(egoY - objY) + ABS(egoX - objX)) / 2; if (d < v->stepSize) { v->parm3 = v->stepSize; diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index ade933fb2f..56694c70f1 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1014,7 +1014,7 @@ cmd(distance) { y1 = v0->yPos; x2 = v1->xPos + v1->xSize / 2; y2 = v1->yPos; - d = abs(x1 - x2) + abs(y1 - y2); + d = ABS(x1 - x2) + ABS(y1 - y2); if (d > 0xfe) d = 0xfe; } else { |