diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-05-20 08:16:28 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-05-21 12:19:06 +0200 |
commit | e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205 (patch) | |
tree | bbd086b1dbf8545575ce5da9ac3b2b7128e19899 /src/Mobs/Horse.cpp | |
parent | Fixed invisible chests (#3722) (diff) | |
download | cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.gz cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.bz2 cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.lz cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.xz cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.tar.zst cuberite-e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205.zip |
Diffstat (limited to 'src/Mobs/Horse.cpp')
-rw-r--r-- | src/Mobs/Horse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Horse.cpp b/src/Mobs/Horse.cpp index ab06704d6..978471b8d 100644 --- a/src/Mobs/Horse.cpp +++ b/src/Mobs/Horse.cpp @@ -24,7 +24,7 @@ cHorse::cHorse(int Type, int Color, int Style, int TameTimes) : m_TimesToTame(TameTimes), m_TameAttemptTimes(0), m_RearTickCount(0), - m_Speed(20.0) + m_MaxSpeed(20.0) { } @@ -183,6 +183,6 @@ void cHorse::HandleSpeedFromAttachee(float a_Forward, float a_Sideways) { if ((m_bIsTame) && (m_bIsSaddled)) { - super::HandleSpeedFromAttachee(a_Forward * m_Speed, a_Sideways * m_Speed); + super::HandleSpeedFromAttachee(a_Forward * m_MaxSpeed, a_Sideways * m_MaxSpeed); } } |