summaryrefslogtreecommitdiff
path: root/src/game-server/movingobject.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/movingobject.hpp')
-rw-r--r--src/game-server/movingobject.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/game-server/movingobject.hpp b/src/game-server/movingobject.hpp
index 48900863..b1f4a33a 100644
--- a/src/game-server/movingobject.hpp
+++ b/src/game-server/movingobject.hpp
@@ -54,12 +54,13 @@ class MovingObject : public Object
/**
* Sets the destination coordinates of the object.
*/
- void setDestination(const Point &dst)
- {
- mDst = dst;
- raiseUpdateFlags(UPDATEFLAG_NEW_DESTINATION);
- mPath.clear();
- }
+ void setDestination(const Point &dst);
+
+ /**
+ * Sets the destination coordinates of the object to the current position.
+ */
+ void clearDestination()
+ { setDestination(getPosition()); }
/**
* Gets the old coordinates of the object.