diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-04-23 22:06:46 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-04-23 22:06:46 +0200 |
commit | 7f5cf417de5e83641e6aa0998cc9dc8b377346b6 (patch) | |
tree | eb33b435797e5b23675fd9bb625f4c54bbbdd9a2 /src/Entities/Entity.h | |
parent | Small changes (diff) | |
download | cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar.gz cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar.bz2 cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar.lz cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar.xz cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.tar.zst cuberite-7f5cf417de5e83641e6aa0998cc9dc8b377346b6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h index 8f3899e2f..354e324c9 100644 --- a/src/Entities/Entity.h +++ b/src/Entities/Entity.h @@ -417,17 +417,14 @@ protected: // Flags that signal that we haven't updated the clients with the latest. bool m_bDirtyHead; bool m_bDirtyOrientation; - bool m_bDirtyPosition; - bool m_bDirtySpeed; + bool m_bHasSentNoSpeed; bool m_bOnGround; float m_Gravity; - // Last Position. - double m_LastPosX, m_LastPosY, m_LastPosZ; - - // This variables keep track of the last time a packet was sent - Int64 m_TimeLastTeleportPacket, m_TimeLastMoveReltPacket, m_TimeLastSpeedPacket; // In ticks + /** Last position sent to client via the Relative Move or Teleport packets (not Velocity) + Only updated if cEntity::BroadcastMovementUpdate() is called! */ + Vector3d m_LastPos; bool m_IsInitialized; // Is set to true when it's initialized, until it's destroyed (Initialize() till Destroy() ) |