1
0

Fixed fall damage

* Fixes #3216
This commit is contained in:
Tiger Wang
2016-06-01 23:46:24 +01:00
parent 5618e453e6
commit a5ec2d8ca2
4 changed files with 17 additions and 44 deletions

View File

@@ -1439,7 +1439,7 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
SetPosition(a_PosX, a_PosY, a_PosZ);
FreezeInternal(GetPosition(), false);
m_LastGroundHeight = static_cast<float>(a_PosY);
m_LastGroundHeight = a_PosY;
m_bIsTeleporting = true;
m_World->BroadcastTeleportEntity(*this, GetClientHandle());