summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-11 23:09:56 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-11 23:09:56 +0100
commit06239c8336a340459a62b45b6d633a55058e4677 (patch)
tree18228a83e863488209da2f9cd18df9352cc1a29d /src/Entities/Player.cpp
parentFixed #612 (diff)
downloadcuberite-06239c8336a340459a62b45b6d633a55058e4677.tar
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.gz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.bz2
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.lz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.xz
cuberite-06239c8336a340459a62b45b6d633a55058e4677.tar.zst
cuberite-06239c8336a340459a62b45b6d633a55058e4677.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 286d43cf6..5f2379ba2 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1122,8 +1122,8 @@ void cPlayer::SetIP(const AString & a_IP)
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
- SetPosition( a_PosX, a_PosY, a_PosZ );
- m_LastGroundHeight = (float)a_PosY;
+ SetPosition(a_PosX, a_PosY, a_PosZ);
+ m_LastGroundHeight, m_LastJumpHeight = (float)a_PosY;
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
m_ClientHandle->SendPlayerMoveLook();