diff options
Diffstat (limited to 'src/game-server/movingobject.cpp')
-rw-r--r-- | src/game-server/movingobject.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game-server/movingobject.cpp b/src/game-server/movingobject.cpp index 2375c903..a24e1070 100644 --- a/src/game-server/movingobject.cpp +++ b/src/game-server/movingobject.cpp @@ -24,6 +24,13 @@ #include "game-server/mapcomposite.hpp" #include "game-server/movingobject.hpp" +void MovingObject::setDestination(Point const &dst) +{ + mDst = dst; + raiseUpdateFlags(UPDATEFLAG_NEW_DESTINATION); + mPath.clear(); +} + void MovingObject::move() { mOld = getPosition(); |