From f521cbeb31e90e4c5c25edb6686544530ddbaf99 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 16 Dec 2013 10:41:35 +0100 Subject: Fixed cClientHandle::Tick() being called from two threads. When the player was initialized, the Tick() function continued to stream chunk, while the cWorld called Tick() from its tick thread. Final fix for #187. --- src/ClientHandle.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 147a5b2b3..18274f6ae 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -79,7 +79,11 @@ public: inline bool IsLoggedIn(void) const { return (m_State >= csAuthenticating); } + /// Called while the client is being ticked from the world via its cPlayer object void Tick(float a_Dt); + + /// Called while the client is being ticked from the cServer object + void ServerTick(float a_Dt); void Destroy(void); -- cgit v1.2.3