summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorwiseoldman95 <softwatt@gmx.com>2015-05-03 08:45:27 +0200
committerwiseoldman95 <softwatt@gmx.com>2015-05-03 09:49:06 +0200
commit599ad97b65139ad450e6f89e39b787c881f76672 (patch)
tree6976cddd3fc8b81fe0853bf3b6da019c5f9b5c24 /src/Mobs/Monster.cpp
parentMerge pull request #1925 from SafwatHalaby/PathFinder_Optimze (diff)
downloadcuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar.gz
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar.bz2
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar.lz
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar.xz
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.tar.zst
cuberite-599ad97b65139ad450e6f89e39b787c881f76672.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 9b9bec51e..bce8467ba 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -131,12 +131,12 @@ void cMonster::TickPathFinding(cChunk & a_Chunk)
// Can someone explain why are these two NOT THE SAME???
// m_Path = new cPath(GetWorld(), GetPosition(), m_FinalDestination, 30);
- m_Path = new cPath(&a_Chunk, Vector3d(floor(position.x), floor(position.y), floor(position.z)), Vector3d(floor(Dest.x), floor(Dest.y), floor(Dest.z)), 20);
+ m_Path = new cPath(a_Chunk, Vector3d(floor(position.x), floor(position.y), floor(position.z)), Vector3d(floor(Dest.x), floor(Dest.y), floor(Dest.z)), 20);
m_IsFollowingPath = false;
}
- m_PathStatus = m_Path->Step(&a_Chunk);
+ m_PathStatus = m_Path->Step(a_Chunk);
switch (m_PathStatus)
{