diff options
author | Mattes D <github@xoft.cz> | 2016-03-01 20:07:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-03-01 20:07:11 +0100 |
commit | c815d03eb486d639e8222582e4e89bc1e0ad072b (patch) | |
tree | 227e10fcfbebe36519f3a870a2beb9d941292c96 /src/Mobs | |
parent | Merge pull request #3031 from cuberite/RenameHttpClasses (diff) | |
parent | fixed horse bug (diff) | |
download | cuberite-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 'src/Mobs')
-rw-r--r-- | src/Mobs/Horse.cpp | 5 |
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); + } } |