summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-20 22:27:29 +0200
committermadmaxoft <github@xoft.cz>2013-08-20 22:28:34 +0200
commit69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e (patch)
treeb53758e80128e1cdad3b9b0937e89cc14b5d7bda /source/ClientHandle.h
parentMerge pull request #117 from tigerw/master (diff)
downloadcuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar.gz
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar.bz2
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar.lz
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar.xz
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.tar.zst
cuberite-69dc9b4c9aea58ebd95e2dbd0205701dfc4ce54e.zip
Diffstat (limited to 'source/ClientHandle.h')
-rw-r--r--source/ClientHandle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/ClientHandle.h b/source/ClientHandle.h
index c85257df1..62616ba08 100644
--- a/source/ClientHandle.h
+++ b/source/ClientHandle.h
@@ -254,6 +254,9 @@ private:
int m_LastDigBlockX;
int m_LastDigBlockY;
int m_LastDigBlockZ;
+
+ /// Used while csDestroyedWaiting for counting the ticks until the connection is closed
+ int m_TicksSinceDestruction;
enum eState
{
@@ -264,6 +267,7 @@ private:
csConfirmingPos, ///< The client has been sent the position packet, waiting for them to repeat the position back
csPlaying, ///< Normal gameplay
csDestroying, ///< The client is being destroyed, don't queue any more packets / don't add to chunks
+ csDestroyedWaiting, ///< The client has been destroyed, but is still kept so that the Kick packet is delivered (#31)
csDestroyed, ///< The client has been destroyed, the destructor is to be called from the owner thread
// TODO: Add Kicking here as well