diff options
author | mtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 03:35:49 +0100 |
---|---|---|
committer | mtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 03:35:49 +0100 |
commit | a85ea1c9accd439bb8a805253979b93e7c8fe6fe (patch) | |
tree | 82630f92662eafe869cbdfabb928c0d6318da991 /source/cClientHandle.h | |
parent | Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speed (diff) | |
download | cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.gz cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.bz2 cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.lz cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.xz cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.zst cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cClientHandle.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 048e46389..67ef56747 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -51,6 +51,8 @@ public: static void AuthenticateThread( void* a_Param );
const char* GetUsername();
+
+ inline short GetPing() { return m_Ping; }
private:
void HandlePacket( cPacket* a_Packet );
void RemovePacket( cPacket * a_Packet );
@@ -66,6 +68,9 @@ private: float m_TimeLastPacket;
+ // TODO: ping calculation per minecraft
+ short m_Ping;
+
bool m_bLoggedIn;
bool m_bSendLoginResponse;
|