diff options
-rw-r--r-- | engines/simon/items.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp index 2a612b059b..a76f367ada 100644 --- a/engines/simon/items.cpp +++ b/engines/simon/items.cpp @@ -1457,8 +1457,8 @@ void SimonEngine::o_getPathPosn() { if (!p) continue; for (j = 0; readUint16Wrapper(&p[0]) != end; j++, p += 2) { - x_diff = abs((int)(readUint16Wrapper(&p[0]) - x)); - y_diff = abs((int)(readUint16Wrapper(&p[1]) - 12 - y)); + x_diff = abs((int16)(readUint16Wrapper(&p[0]) - x)); + y_diff = abs((int16)(readUint16Wrapper(&p[1]) - 12 - y)); if (x_diff < y_diff) { x_diff /= 4; |