aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-08 13:34:21 +0000
committerTorbjörn Andersson2006-05-08 13:34:21 +0000
commite2656a276afa9497750cc58536c3330605d6aeec (patch)
tree3577bbe98bb6cf19958f33738297228a110f0422 /engines/lure
parent3f9395831cba0024e57aa19d8222845ae7778a5d (diff)
downloadscummvm-rg350-e2656a276afa9497750cc58536c3330605d6aeec.tar.gz
scummvm-rg350-e2656a276afa9497750cc58536c3330605d6aeec.tar.bz2
scummvm-rg350-e2656a276afa9497750cc58536c3330605d6aeec.zip
Changed abs() to ABS()
svn-id: r22389
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index c7faa092ad..9c9ddfe156 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -348,7 +348,7 @@ void Hotspot::faceHotspot(HotspotData *hotspot) {
int xp = x() - hotspot->startX;
int yp = y() + heightCopy() - (hotspot->startY + hotspot->heightCopy);
- if (abs(yp) >= abs(xp)) {
+ if (ABS(yp) >= ABS(xp)) {
if (yp < 0) setDirection(DOWN);
else setDirection(UP);
} else {
@@ -529,8 +529,8 @@ bool Hotspot::characterWalkingCheck(HotspotData *hotspot) {
// Special handling for walking
// if (((xp >> 3) != (x() >> 3)) ||
// ((((y() + heightCopy()) >> 3) - 1) != (yp >> 3))) {
- if ((abs(xp - x()) > 8) ||
- (abs(yp - (y() + heightCopy())) > 8)) {
+ if ((ABS(xp - x()) > 8) ||
+ (ABS(yp - (y() + heightCopy())) > 8)) {
walkTo(xp, yp);
return true;
} else {
@@ -541,8 +541,8 @@ bool Hotspot::characterWalkingCheck(HotspotData *hotspot) {
// Default walking handling
// TODO: ANIM[27h] = 1 if hotspot has walk co-ordinates
- if ((abs(x() - xp) >= 8) ||
- (abs(y() + heightCopy() - yp - 1) >= 19)) {
+ if ((ABS(x() - xp) >= 8) ||
+ (ABS(y() + heightCopy() - yp - 1) >= 19)) {
walkTo(xp, yp);
return true;
}