summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-03-01 20:07:11 +0100
committerMattes D <github@xoft.cz>2016-03-01 20:07:11 +0100
commitc815d03eb486d639e8222582e4e89bc1e0ad072b (patch)
tree227e10fcfbebe36519f3a870a2beb9d941292c96 /src
parentMerge pull request #3031 from cuberite/RenameHttpClasses (diff)
parentfixed horse bug (diff)
downloadcuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar.gz
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar.bz2
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar.lz
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar.xz
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.tar.zst
cuberite-c815d03eb486d639e8222582e4e89bc1e0ad072b.zip
Diffstat (limited to '')
-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);
+ }
}