diff options
Diffstat (limited to 'engines/cruise/ctp.cpp')
-rw-r--r-- | engines/cruise/ctp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cruise/ctp.cpp b/engines/cruise/ctp.cpp index f916a3f8a2..a3acbef944 100644 --- a/engines/cruise/ctp.cpp +++ b/engines/cruise/ctp.cpp @@ -23,6 +23,7 @@ */ #include "cruise/cruise_main.h" +#include "common/util.h" namespace Cruise { @@ -44,8 +45,8 @@ int ctpVarUnk; uint8 walkboxTable[0x12]; int ctpProc2(int varX, int varY, int paramX, int paramY) { - int diffX = abs(paramX - varX); - int diffY = abs(paramY - varY); + int diffX = ABS(paramX - varX); + int diffY = ABS(paramY - varY); if (diffX > diffY) { diffY = diffX; |