From 4cd89f7fc9a3846e9d42b1d401453b8b55a2990f Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 30 Jul 2010 00:30:40 +0200 Subject: Changed the FloatData class to store double instead of single floats. Also fixed a few compile warnings. --- src/being.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index e8007948..1061cf36 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -215,8 +215,9 @@ void Being::setDestination(int dstX, int dstY) Position dest = mMap->checkNodeOffsets(getCollisionRadius(), getWalkMask(), dstX, dstY); - Path thisPath = mMap->findPixelPath(mPos.x, mPos.y, dest.x, dest.y, - getCollisionRadius(), getWalkMask()); + Path thisPath = mMap->findPixelPath((int) mPos.x, (int) mPos.y, + dest.x, dest.y, + getCollisionRadius(), getWalkMask()); if (thisPath.empty()) { -- cgit v1.2.3-70-g09d2