From 4bf160d596d8b9d0bfb3904470560b492453e5e4 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Wed, 11 Apr 2018 08:39:24 +0100 Subject: Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. (#4211) --- src/Entities/Entity.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Entities/Entity.h') diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 5b993ac96..9abf75968 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -666,6 +666,10 @@ protected: m_IsHeadInWater */ virtual void SetSwimState(cChunk & a_Chunk); + /** Set the entities position and last sent position. + Only to be used when the caller will broadcast a teleport or equivalent to clients. */ + void ResetPosition(Vector3d a_NewPos); + private: /** Whether the entity is ticking or not. If not, it is scheduled for removal or world-teleportation. */ -- cgit v1.2.3