summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2014-01-29 18:25:10 +0100
committertonibm19 <tonibm19@gmail.com>2014-01-29 18:25:10 +0100
commit73d9a285d511a3cd1016aafc8c492924e6a7b249 (patch)
tree03d2e9278396de47370fa075605abd1128bf5fea /src
parentNow mobs follow you when holding their breed item (diff)
downloadcuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar.gz
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar.bz2
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar.lz
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar.xz
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.tar.zst
cuberite-73d9a285d511a3cd1016aafc8c492924e6a7b249.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Cow.cpp3
-rw-r--r--src/Mobs/Mooshroom.cpp1
-rw-r--r--src/Mobs/Pig.cpp1
-rw-r--r--src/Mobs/Sheep.cpp1
4 files changed, 5 insertions, 1 deletions
diff --git a/src/Mobs/Cow.cpp b/src/Mobs/Cow.cpp
index 205ecc73f..4063f034d 100644
--- a/src/Mobs/Cow.cpp
+++ b/src/Mobs/Cow.cpp
@@ -42,7 +42,8 @@ void cCow::OnRightClicked(cPlayer & a_Player)
}
void cCow::Tick(float a_Dt, cChunk & a_Chunk)
-{
+{
+ super::Tick(a_Dt, a_Chunk);
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
if (a_Closest_Player != NULL)
{
diff --git a/src/Mobs/Mooshroom.cpp b/src/Mobs/Mooshroom.cpp
index 1ff90392d..60721f0ee 100644
--- a/src/Mobs/Mooshroom.cpp
+++ b/src/Mobs/Mooshroom.cpp
@@ -32,6 +32,7 @@ void cMooshroom::GetDrops(cItems & a_Drops, cEntity * a_Killer)
void cMooshroom::Tick(float a_Dt, cChunk & a_Chunk)
{
+ super::Tick(a_Dt, a_Chunk);
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
if (a_Closest_Player != NULL)
{
diff --git a/src/Mobs/Pig.cpp b/src/Mobs/Pig.cpp
index e31bc90ba..b6d11d856 100644
--- a/src/Mobs/Pig.cpp
+++ b/src/Mobs/Pig.cpp
@@ -73,6 +73,7 @@ void cPig::OnRightClicked(cPlayer & a_Player)
void cPig::Tick(float a_Dt, cChunk & a_Chunk)
{
+ super::Tick(a_Dt, a_Chunk);
cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance);
if (a_Closest_Player != NULL)
{
diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp
index 3fb9351ad..2478ec79c 100644
--- a/src/Mobs/Sheep.cpp
+++ b/src/Mobs/Sheep.cpp
@@ -68,6 +68,7 @@ void cSheep::OnRightClicked(cPlayer & a_Player)
void cSheep::Tick(float a_Dt, cChunk & a_Chunk)
{
+ super::Tick(a_Dt, a_Chunk);
// The sheep should not move when he's eating so only handle the physics.
if (m_TimeToStopEating > 0)
{