summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Horse.cpp
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-25 14:03:39 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-25 14:03:39 +0100
commit6a22605fae80becb12318785389d07974a35cbbb (patch)
treefe06cfac5e89b12f1e8b8492d37dc10468c81429 /src/Mobs/Horse.cpp
parentMerge pull request #2815 from SafwatHalaby/world (diff)
parentPF - "Special blocks" handling (diff)
downloadcuberite-6a22605fae80becb12318785389d07974a35cbbb.tar
cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.gz
cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.bz2
cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.lz
cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.xz
cuberite-6a22605fae80becb12318785389d07974a35cbbb.tar.zst
cuberite-6a22605fae80becb12318785389d07974a35cbbb.zip
Diffstat (limited to 'src/Mobs/Horse.cpp')
-rw-r--r--src/Mobs/Horse.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Horse.cpp b/src/Mobs/Horse.cpp
index f133f9912..01906b7b4 100644
--- a/src/Mobs/Horse.cpp
+++ b/src/Mobs/Horse.cpp
@@ -72,7 +72,7 @@ void cHorse::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
m_bIsTame = true;
}
}
-
+
if (m_bIsRearing)
{
if (m_RearTickCount == 20)
@@ -161,12 +161,12 @@ void cHorse::GetDrops(cItems & a_Drops, cEntity * a_Killer)
-void cHorse::InStateIdle(std::chrono::milliseconds a_Dt)
+void cHorse::InStateIdle(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
// If horse is tame and someone is sitting on it, don't walk around
if ((!m_bIsTame) || (m_Attachee == nullptr))
{
- super::InStateIdle(a_Dt);
+ super::InStateIdle(a_Dt, a_Chunk);
}
}