aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorMax Horn2004-12-25 13:19:45 +0000
committerMax Horn2004-12-25 13:19:45 +0000
commit1b82711302ee4f3d15ae28558a587dd6ef0949fe (patch)
tree0cf4e2d42c44a9306711490ee6524c1567be0156 /saga
parenta66080b80a592f0610d1e4c7e8adeefe8a30e680 (diff)
downloadscummvm-rg350-1b82711302ee4f3d15ae28558a587dd6ef0949fe.tar.gz
scummvm-rg350-1b82711302ee4f3d15ae28558a587dd6ef0949fe.tar.bz2
scummvm-rg350-1b82711302ee4f3d15ae28558a587dd6ef0949fe.zip
There is no 'max' function on some of our targets
svn-id: r16309
Diffstat (limited to 'saga')
-rw-r--r--saga/actor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/actor.h b/saga/actor.h
index e67219d176..b48f321f0d 100644
--- a/saga/actor.h
+++ b/saga/actor.h
@@ -126,7 +126,7 @@ struct ActorLocation {
int y; //
int z; //
int distance(const ActorLocation &location) {
- return max(abs(x - location.x), abs(y - location.y));
+ return MAX(abs(x - location.x), abs(y - location.y));
}
};
struct ActorData {