diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-30 00:30:40 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-07-30 00:30:40 +0200 |
commit | 4cd89f7fc9a3846e9d42b1d401453b8b55a2990f (patch) | |
tree | 1e1519f02b10b8a3c584fff93063d42b0d8a55d4 /src/being.cpp | |
parent | ae898aa1a5175b2b08f7248e4cd89bf61bc8e4be (diff) | |
download | mana-4cd89f7fc9a3846e9d42b1d401453b8b55a2990f.tar.gz mana-4cd89f7fc9a3846e9d42b1d401453b8b55a2990f.tar.bz2 mana-4cd89f7fc9a3846e9d42b1d401453b8b55a2990f.tar.xz mana-4cd89f7fc9a3846e9d42b1d401453b8b55a2990f.zip |
Changed the FloatData class to store double instead of single floats.
Also fixed a few compile warnings.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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()) { |