Keep players from taking damage when teleporting. (Hopefully).
Fixes #29
This commit is contained in:
parent
23b15a926c
commit
eaec6a4aab
@ -765,6 +765,7 @@ void cPlayer::SendMessage(const AString & a_Message)
|
|||||||
|
|
||||||
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
|
||||||
{
|
{
|
||||||
|
m_LastGroundHeight = (float)a_PosY();
|
||||||
SetPosition( a_PosX, a_PosY, a_PosZ );
|
SetPosition( a_PosX, a_PosY, a_PosZ );
|
||||||
|
|
||||||
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
|
m_World->BroadcastTeleportEntity(*this, GetClientHandle());
|
||||||
|
Loading…
Reference in New Issue
Block a user