diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-28 20:46:50 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-28 20:46:50 +0200 |
commit | ce94f62be91c98310281b33dbc7f4b79fd4e8052 (patch) | |
tree | 5252980318741ae95314ab231e1dddce8dc09086 /src/being.cpp | |
parent | e7e550c863c3bb5d5e8697ecce1ea37ad248e362 (diff) | |
download | mana-ce94f62be91c98310281b33dbc7f4b79fd4e8052.tar.gz mana-ce94f62be91c98310281b33dbc7f4b79fd4e8052.tar.bz2 mana-ce94f62be91c98310281b33dbc7f4b79fd4e8052.tar.xz mana-ce94f62be91c98310281b33dbc7f4b79fd4e8052.zip |
Random cleanups - Part 2
- Removed another bogus comment.
- Made functions used only in the tA::beinghandler static.
- Don't init the destination to an irrelevant value
in being::setDestination()
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index 36646006..3f375e03 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -203,7 +203,7 @@ void Being::setDestination(int dstX, int dstY) if (!mMap->getWalk(dstX / tileWidth, dstY / tileHeight)) return; - Position dest(dstX, dstY); + Position dest(0, 0); Path thisPath; if (Net::getPlayerHandler()->usePixelPrecision()) { |