diff options
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/sequences_v1.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/sequences_v1.cpp b/engines/kyra/sequences_v1.cpp index 502b2405f7..9b8c4ca7f7 100644 --- a/engines/kyra/sequences_v1.cpp +++ b/engines/kyra/sequences_v1.cpp @@ -1560,8 +1560,8 @@ void KyraEngine::initBeadState(int x, int y, int x2, int y2, int unk, BeadState unk2 = -1; } - xDiff = abs(xDiff); - yDiff = abs(yDiff); + xDiff = ABS(xDiff); + yDiff = ABS(yDiff); ptr->y = 0; ptr->x = 0; @@ -1600,11 +1600,11 @@ int KyraEngine::processBead(int x, int y, int &x2, int &y2, BeadState *ptr) { } } - int temp = abs(x - ptr->dstX); + int temp = ABS(x - ptr->dstX); if (ptr->unk9 > temp) { xPos = ptr->dstX; } - temp = abs(y - ptr->dstY); + temp = ABS(y - ptr->dstY); if (ptr->unk9 > temp) { yPos = ptr->dstY; } |