summaryrefslogtreecommitdiff
path: root/src/game-server/movingobject.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-07 19:21:10 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-07-07 19:21:10 +0000
commita4c7586b310a8be8ffd5c8acad88b5236695c1da (patch)
tree87af31a35a0b20326109725de88e60a8f25a5bbd /src/game-server/movingobject.cpp
parentd213cdea38ae5dda3c1cbdc6c85a2c5fe04e9399 (diff)
downloadmanaserv-a4c7586b310a8be8ffd5c8acad88b5236695c1da.tar.gz
manaserv-a4c7586b310a8be8ffd5c8acad88b5236695c1da.tar.bz2
manaserv-a4c7586b310a8be8ffd5c8acad88b5236695c1da.tar.xz
manaserv-a4c7586b310a8be8ffd5c8acad88b5236695c1da.zip
Fixed teleportation hack caused by caching of pathfinder results.
Diffstat (limited to 'src/game-server/movingobject.cpp')
-rw-r--r--src/game-server/movingobject.cpp7
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();