aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/perso.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/perso.cpp')
-rw-r--r--engines/cruise/perso.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cruise/perso.cpp b/engines/cruise/perso.cpp
index b1b5ab4068..60867a6dec 100644
--- a/engines/cruise/perso.cpp
+++ b/engines/cruise/perso.cpp
@@ -23,6 +23,7 @@
*/
#include "cruise/cruise_main.h"
+#include "common/util.h"
namespace Cruise {
@@ -62,9 +63,9 @@ int direction(int x1, int y1, int x2, int y2, int inc_jo1, int inc_jo2) {
int h, v, h1, v1;
h1 = x1 - x2;
- h = abs(h1);
+ h = ABS(h1);
v1 = y1 - y2;
- v = abs(v1);
+ v = ABS(v1);
if (v > h) {
if (h > 30)