From 253e2c0af1f88d38dc92d62d82b230711ef2f874 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 24 Feb 2010 21:46:08 +0100 Subject: Some code cleanups Reviewed-by: Jared Adams --- src/being.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/being.h') 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: -- cgit v1.2.3-70-g09d2