[Scummvm-cvs-logs] SF.net SVN: scummvm:[39810] scummvm/trunk/engines/sci/engine/kpathing.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Apr 3 16:53:56 CEST 2009


Revision: 39810
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39810&view=rev
Author:   fingolfin
Date:     2009-04-03 14:53:56 +0000 (Fri, 03 Apr 2009)

Log Message:
-----------
SCI: Fix warning on OSX

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kpathing.cpp

Modified: scummvm/trunk/engines/sci/engine/kpathing.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kpathing.cpp	2009-04-03 14:53:15 UTC (rev 39809)
+++ scummvm/trunk/engines/sci/engine/kpathing.cpp	2009-04-03 14:53:56 UTC (rev 39810)
@@ -83,7 +83,7 @@
 	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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list