From a85ea1c9accd439bb8a805253979b93e7c8fe6fe Mon Sep 17 00:00:00 2001 From: "mtilden@gmail.com" Date: Mon, 26 Dec 2011 02:35:49 +0000 Subject: - Cleaned up PLI Packet and its creation/sending and fixed bug of player not being removed on scoreboard (forgot to send color in the removal packet) git-svn-id: http://mc-server.googlecode.com/svn/trunk@116 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/cClientHandle.h') 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; -- cgit v1.2.3