diff options
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;
|