Keep players from taking damage when teleporting.
This commit is contained in:
parent
83d3635e0b
commit
9ad3c52593
@ -777,8 +777,8 @@ void cPlayer::SendMessage(const AString & a_Message)
|
||||
|
||||
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
||||
{
|
||||
m_LastGroundHeight = (float)a_PosY;
|
||||
SetPosition( a_PosX, a_PosY, a_PosZ );
|
||||
m_LastGroundHeight = (float)a_PosY;
|
||||
|
||||
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
|
||||
m_ClientHandle->SendPlayerMoveLook();
|
||||
|
Loading…
Reference in New Issue
Block a user