aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2009-04-03 14:53:56 +0000
committerMax Horn2009-04-03 14:53:56 +0000
commitcf3265a1c9e089fb7943ea744590cecb169b96a0 (patch)
tree5d1a97f9a66489b28ed1423fab436a47de6b1eb2 /engines
parentfb6d0a7119c839efd13ee51e05f68337362bd84b (diff)
downloadscummvm-rg350-cf3265a1c9e089fb7943ea744590cecb169b96a0.tar.gz
scummvm-rg350-cf3265a1c9e089fb7943ea744590cecb169b96a0.tar.bz2
scummvm-rg350-cf3265a1c9e089fb7943ea744590cecb169b96a0.zip
SCI: Fix warning on OSX
svn-id: r39810
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kpathing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 2fdcbd475f..cfb5fbad2b 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -83,7 +83,7 @@ struct FloatPoint {
FloatPoint(float x_, float y_) : x(x_), y(y_) {}
Common::Point toPoint() {
- return Common::Point(x + 0.5, y + 0.5);
+ return Common::Point((int16)(x + 0.5), (int16)(y + 0.5));
}
float x, y;