summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-12 22:53:46 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-12 22:53:46 +0100
commit91ebb6cef09ff8437beaa0c17ca2a1c094741200 (patch)
treea4ee0590373568442ff00760b78a6cc41200aed4 /src/Entities
parentSimplified Attack() tracing (diff)
downloadcuberite-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.cpp3
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();