1
0

cPawn: Reset last ground height in ResetPosition (#4261)

Prevents fall damage after teleporting/portaling to a lower height.

Fixes #3457
This commit is contained in:
peterbell10
2018-07-23 17:26:48 +01:00
committed by GitHub
parent 01e72ddb65
commit e27290f7d2
4 changed files with 13 additions and 2 deletions

View File

@@ -1650,7 +1650,6 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
ResetPosition({a_PosX, a_PosY, a_PosZ});
FreezeInternal(GetPosition(), false);
m_LastGroundHeight = a_PosY;
m_bIsTeleporting = true;
m_World->BroadcastTeleportEntity(*this, GetClientHandle());