diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-24 20:57:32 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-24 20:57:32 +0100 |
commit | 9c0e3615ce61dba0ae973b97807833bd6ddd5bda (patch) | |
tree | f19c645c9d41539064cb23b0448ed7794114c5d9 /src/Mobs/Wolf.cpp | |
parent | Fixed mobs too close to player not ticking (diff) | |
download | cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.gz cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.bz2 cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.lz cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.xz cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.zst cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Wolf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index 3d4e97c80..483f1d193 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -108,7 +108,7 @@ void cWolf::Tick(float a_Dt, cChunk & a_Chunk) m_bMovingToDestination = false; } - cPlayer * a_Closest_Player = FindClosestPlayer(); + cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), m_SightDistance); if (a_Closest_Player != NULL) { switch (a_Closest_Player->GetEquippedItem().m_ItemType) |