summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2016-03-01 12:58:02 +0100
committertonibm19 <tonibm19@gmail.com>2016-03-01 19:52:21 +0100
commit27968aa958cde54c95a224bf111e9c2b8af055d5 (patch)
tree227e10fcfbebe36519f3a870a2beb9d941292c96 /src/Mobs
parentMerge pull request #3031 from cuberite/RenameHttpClasses (diff)
downloadcuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar.gz
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar.bz2
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar.lz
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar.xz
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.tar.zst
cuberite-27968aa958cde54c95a224bf111e9c2b8af055d5.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Horse.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Horse.cpp b/src/Mobs/Horse.cpp
index 01906b7b4..dd40f1da2 100644
--- a/src/Mobs/Horse.cpp
+++ b/src/Mobs/Horse.cpp
@@ -176,5 +176,8 @@ void cHorse::InStateIdle(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
void cHorse::HandleSpeedFromAttachee(float a_Forward, float a_Sideways)
{
- super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed);
+ if ((m_bIsTame) && (m_bIsSaddled))
+ {
+ super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed);
+ }
}