summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-24 21:46:08 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-24 23:03:22 +0100
commit253e2c0af1f88d38dc92d62d82b230711ef2f874 (patch)
treef158cfbe56900bf7ca31bbed51ae07928b854dc0 /src/being.h
parent4cb11db37aeb8052e1fef94965bc48bbc949e7f9 (diff)
downloadmana-client-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.gz
mana-client-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.bz2
mana-client-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.xz
mana-client-253e2c0af1f88d38dc92d62d82b230711ef2f874.zip
Some code cleanups
Reviewed-by: Jared Adams
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/being.h b/src/being.h
index 5140717c..ff21825c 100644
--- a/src/being.h
+++ b/src/being.h
@@ -648,12 +648,11 @@ class Being : public Sprite, public ConfigListener
Vector mDest; /**< destination coordinates. */
/**
- * Check the current position against surrounding
- * blocking tiles, and correct the position offset within
- * tile when needed.
+ * Check the current position against surrounding blocking tiles, and
+ * correct the position offset within tile when needed.
*/
- Position checkNodeOffsets(Position position);
- Position checkNodeOffsets(int x, int y)
+ Position checkNodeOffsets(const Position &position) const;
+ Position checkNodeOffsets(int x, int y) const
{ return checkNodeOffsets(Position(x, y)); }
private: