summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSafwatHalaby <SafwatHalaby@users.noreply.github.com>2015-05-28 07:31:17 +0200
committerSafwatHalaby <SafwatHalaby@users.noreply.github.com>2015-05-28 07:31:17 +0200
commitb936781f93f6d8d1421edc42444244850aa4fa18 (patch)
tree134d379b21af474b502eb521aa9acb0ee60d7f29 /src
parentMerge pull request #2148 from SafwatHalaby/easy (diff)
downloadcuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar.gz
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar.bz2
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar.lz
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar.xz
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.tar.zst
cuberite-b936781f93f6d8d1421edc42444244850aa4fa18.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Wolf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index 3c2ec1520..af7de1579 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -20,6 +20,7 @@ cWolf::cWolf(void) :
m_OwnerName(""),
m_CollarColor(14)
{
+ m_RelativeWalkSpeed = 2;
}
@@ -230,7 +231,7 @@ void cWolf::TickFollowPlayer()
{
// The player is present in the world, follow him:
double Distance = (Callback.OwnerPos - GetPosition()).Length();
- if (Distance > 30)
+ if (Distance > 20)
{
Callback.OwnerPos.y = FindFirstNonAirBlockPosition(Callback.OwnerPos.x, Callback.OwnerPos.z);
TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);