diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-12 22:53:46 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-12 22:53:46 +0100 |
commit | 91ebb6cef09ff8437beaa0c17ca2a1c094741200 (patch) | |
tree | a4ee0590373568442ff00760b78a6cc41200aed4 /src | |
parent | Simplified Attack() tracing (diff) | |
download | cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar.gz cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar.bz2 cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar.lz cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar.xz cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.tar.zst cuberite-91ebb6cef09ff8437beaa0c17ca2a1c094741200.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 5f2379ba2..838bbd06c 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1123,7 +1123,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, m_LastJumpHeight = (float)a_PosY; + m_LastGroundHeight = (float)a_PosY; + m_LastJumpHeight = (float)a_PosY; m_World->BroadcastTeleportEntity(*this, GetClientHandle()); m_ClientHandle->SendPlayerMoveLook(); |