diff options
author | Torbjörn Andersson | 2010-07-14 17:02:14 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-07-14 17:02:14 +0000 |
commit | f98fa72ef38ed2fd0239d59bda07acdb33b831c8 (patch) | |
tree | e0486d4da30f88fce7f4604079959ac22f4a4e09 /engines/draci | |
parent | b91ef128975c6f253bed6c7720f4ead9e1ab0dc6 (diff) | |
download | scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.tar.gz scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.tar.bz2 scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.zip |
Changed abs() to ABS() in a few places.
svn-id: r50890
Diffstat (limited to 'engines/draci')
-rw-r--r-- | engines/draci/walking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/walking.cpp b/engines/draci/walking.cpp index e57972fbc5..02612832d2 100644 --- a/engines/draci/walking.cpp +++ b/engines/draci/walking.cpp @@ -324,7 +324,7 @@ void WalkingMap::drawOverlayRectangle(const Common::Point &p, byte colour, byte } int WalkingMap::pointsBetween(const Common::Point &p1, const Common::Point &p2) { - return MAX(abs(p2.x - p1.x), abs(p2.y - p1.y)); + return MAX(ABS(p2.x - p1.x), ABS(p2.y - p1.y)); } Common::Point WalkingMap::interpolate(const Common::Point &p1, const Common::Point &p2, int i, int n) { @@ -636,7 +636,7 @@ bool WalkingState::walkOnNextEdge() { Movement WalkingState::animationForDirection(const Common::Point &here, const Common::Point &there) { const int dx = there.x - here.x; const int dy = there.y - here.y; - if (abs(dx) >= abs(dy)) { + if (ABS(dx) >= ABS(dy)) { return dx >= 0 ? kMoveRight : kMoveLeft; } else { return dy >= 0 ? kMoveDown : kMoveUp; |