summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-04 18:23:03 +0100
committerMattes D <github@xoft.cz>2014-02-04 18:23:03 +0100
commit0ceb0ef607ac94315ea23c35dd7a57c4c5c27508 (patch)
tree23ab496c5f20c54c0ccaef76aa682c44e85e4fe6 /src/Mobs/Monster.cpp
parentFixed calling plugins with userdata params. (diff)
parentFixed indentation (diff)
downloadcuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar.gz
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar.bz2
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar.lz
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar.xz
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.tar.zst
cuberite-0ceb0ef607ac94315ea23c35dd7a57c4c5c27508.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 283ef36e6..340761a7e 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -191,6 +191,18 @@ void cMonster::MoveToPosition(const Vector3f & a_Position)
+
+void cMonster::MoveToPosition(const Vector3d & a_Position)
+{
+ FinishPathFinding();
+
+ m_FinalDestination = a_Position;
+ m_bMovingToDestination = true;
+ TickPathFinding();
+}
+
+
+
bool cMonster::IsCoordinateInTraversedList(Vector3i a_Coords)
{
for (std::vector<Vector3i>::const_iterator itr = m_TraversedCoordinates.begin(); itr != m_TraversedCoordinates.end(); ++itr)