diff options
author | tonibm19 <tonibm19@gmail.com> | 2014-02-03 20:52:11 +0100 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2014-02-03 20:52:11 +0100 |
commit | c2e7dd34d98258bdfa5baa2f27f08999909996c5 (patch) | |
tree | a402d6ecad32c4effafed2c7d27ea87f357685e5 /src/Mobs/Monster.cpp | |
parent | Merge pull request #623 from mc-server/tnt (diff) | |
download | cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar.gz cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar.bz2 cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar.lz cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar.xz cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.tar.zst cuberite-c2e7dd34d98258bdfa5baa2f27f08999909996c5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 283ef36e6..35880bcff 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -188,6 +188,14 @@ void cMonster::MoveToPosition(const Vector3f & a_Position) TickPathFinding(); } +void cMonster::MoveToPosition(const Vector3d & a_Position) +{ + FinishPathFinding(); + + m_FinalDestination = a_Position; + m_bMovingToDestination = true; + TickPathFinding(); +} |