diff options
author | Torbjörn Andersson | 2007-04-28 04:29:05 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-04-28 04:29:05 +0000 |
commit | 6ba72121ad547a5bacaa2c89215ca6f48653f46a (patch) | |
tree | c30ac6c7e8de7117b925b062ce27afaf30e27084 /engines/agi | |
parent | 32dbf6ae52a2c3938d7c77a5edd80980e62f9826 (diff) | |
download | scummvm-rg350-6ba72121ad547a5bacaa2c89215ca6f48653f46a.tar.gz scummvm-rg350-6ba72121ad547a5bacaa2c89215ca6f48653f46a.tar.bz2 scummvm-rg350-6ba72121ad547a5bacaa2c89215ca6f48653f46a.zip |
Changed abs() to ABS()
svn-id: r26639
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 { |