summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol16x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-20 15:45:42 +0100
committermadmaxoft <github@xoft.cz>2014-03-20 15:45:42 +0100
commit64d9390069650bbbc1850d5602b9854a1c1a7257 (patch)
tree02d504711e730d235cd6b1c2c874e797a6359902 /src/Protocol/Protocol16x.cpp
parentProtoProxy: Fixed MSVC compilation. (diff)
downloadcuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar.gz
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar.bz2
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar.lz
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar.xz
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.tar.zst
cuberite-64d9390069650bbbc1850d5602b9854a1c1a7257.zip
Diffstat (limited to 'src/Protocol/Protocol16x.cpp')
-rw-r--r--src/Protocol/Protocol16x.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol16x.cpp b/src/Protocol/Protocol16x.cpp
index f6ec0a199..ecb24254f 100644
--- a/src/Protocol/Protocol16x.cpp
+++ b/src/Protocol/Protocol16x.cpp
@@ -135,7 +135,7 @@ void cProtocol161::SendPlayerMaxSpeed(void)
WriteInt(m_Client->GetPlayer()->GetUniqueID());
WriteInt(1);
WriteString("generic.movementSpeed");
- WriteDouble(m_Client->GetPlayer()->GetMaxSpeed());
+ WriteDouble(0.1 * m_Client->GetPlayer()->GetMaxSpeed());
Flush();
}
@@ -267,7 +267,7 @@ void cProtocol162::SendPlayerMaxSpeed(void)
WriteInt(m_Client->GetPlayer()->GetUniqueID());
WriteInt(1);
WriteString("generic.movementSpeed");
- WriteDouble(m_Client->GetPlayer()->GetMaxSpeed());
+ WriteDouble(0.1 * m_Client->GetPlayer()->GetMaxSpeed());
WriteShort(0);
Flush();
}