summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-26 13:27:35 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-26 13:27:35 +0100
commit4c780e7b4490c34694e9f76e6944d5959299eb84 (patch)
treee021178b37a74e24400ccde9546268c4ef049bb4 /src/Mobs/Wolf.cpp
parentSmall fix since the new AI and a new small feature. (diff)
downloadcuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar.gz
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar.bz2
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar.lz
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar.xz
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.tar.zst
cuberite-4c780e7b4490c34694e9f76e6944d5959299eb84.zip
Diffstat (limited to 'src/Mobs/Wolf.cpp')
-rw-r--r--src/Mobs/Wolf.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index 217834eb1..c0c7892e3 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -202,7 +202,10 @@ void cWolf::TickFollowPlayer()
double Distance = (Callback.OwnerPos - GetPosition()).Length();
if (Distance > 30)
{
- TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
+ if (!IsSitting())
+ {
+ TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
+ }
}
else
{