Made player jump reset less ambiguous
This commit is contained in:
parent
7ced2f290f
commit
91ebb6cef0
@ -1123,7 +1123,8 @@ void cPlayer::SetIP(const AString & a_IP)
|
|||||||
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
||||||
{
|
{
|
||||||
SetPosition(a_PosX, a_PosY, 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_World->BroadcastTeleportEntity(*this, GetClientHandle());
|
||||||
m_ClientHandle->SendPlayerMoveLook();
|
m_ClientHandle->SendPlayerMoveLook();
|
||||||
|
Loading…
Reference in New Issue
Block a user