From cf3265a1c9e089fb7943ea744590cecb169b96a0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 3 Apr 2009 14:53:56 +0000 Subject: SCI: Fix warning on OSX svn-id: r39810 --- engines/sci/engine/kpathing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3