aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2002-05-05 18:10:29 +0000
committerMax Horn2002-05-05 18:10:29 +0000
commitff376ea8a590f8afbc521eb7cac0a54c2acabc3b (patch)
treeaaeabb72a4c029cc446b0653f4409a80d38113eb /simon
parentf412e7bb575ad56de201356d4851e9d7096062ef (diff)
downloadscummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.tar.gz
scummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.tar.bz2
scummvm-rg350-ff376ea8a590f8afbc521eb7cac0a54c2acabc3b.zip
fixed some warnings
svn-id: r4204
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 15691dc84c..c490b6b1c7 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -6529,8 +6529,8 @@ void SimonState::o_pathfind(int x,int y,uint var_1,uint var_2) {
if (!p)
continue;
for(j=0; READ_BE_UINT16_UNALIGNED(&p[0]) != 999; j++,p+=2) { /* 0xE703 = byteswapped 999 */
- x_diff = abs(READ_BE_UINT16_UNALIGNED(&p[0]) - x);
- y_diff = abs(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y);
+ x_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[0]) - x));
+ y_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y));
if (x_diff < y_diff) {
x_diff >>= 2;