aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-07 14:20:01 +0300
committerEugene Sandulenko2013-06-22 11:19:44 -0400
commit726ae06d442bea5c2a071db5eac27dd5bea96ae1 (patch)
tree12ef3cd5b40ddc3e8288c0aa7f44acab24c61a42 /engines
parentd530985a6b88d01b79b3384894e049cb1a7ccf24 (diff)
downloadscummvm-rg350-726ae06d442bea5c2a071db5eac27dd5bea96ae1.tar.gz
scummvm-rg350-726ae06d442bea5c2a071db5eac27dd5bea96ae1.tar.bz2
scummvm-rg350-726ae06d442bea5c2a071db5eac27dd5bea96ae1.zip
NEVERHOOD: Fix warning
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp
index 8a30b20df4..66a7999e59 100644
--- a/engines/neverhood/graphics.cpp
+++ b/engines/neverhood/graphics.cpp
@@ -343,7 +343,7 @@ void unpackSpriteNormal(const byte *source, int width, int height, byte *dest, i
int calcDistance(int16 x1, int16 y1, int16 x2, int16 y2) {
const int16 deltaX = ABS(x1 - x2);
const int16 deltaY = ABS(y1 - y2);
- return sqrt((double)(deltaX * deltaX + deltaY * deltaY));
+ return (int)sqrt((double)(deltaX * deltaX + deltaY * deltaY));
}
} // End of namespace Neverhood