summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-26 00:48:28 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-26 00:48:28 +0100
commita14e015354611a50920a0861f80c9691ab8fa633 (patch)
tree49e573603f5cff7dc551fa79d08e1d801ef3d8ca /source/cClientHandle.cpp
parentMade the viewdistance settable by users and default in settings.ini. The default is 9. (diff)
downloadcuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar.gz
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar.bz2
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar.lz
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar.xz
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.tar.zst
cuberite-a14e015354611a50920a0861f80c9691ab8fa633.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 78032611e..9eed31a3a 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -151,7 +151,7 @@ cClientHandle::~cClientHandle()
{
LOG("Deleting client \"%s\"", GetUsername().c_str());
- // Remove from cSocketThreads, just in case
+ // Remove from cSocketThreads, we're not to be called anymore:
cRoot::Get()->GetServer()->ClientDestroying(this);
m_LoadedChunks.clear();
@@ -225,14 +225,6 @@ void cClientHandle::Destroy()
{
RemoveFromAllChunks();
}
-
- if (m_Socket.IsValid())
- {
- m_Socket.CloseSocket();
- }
-
- // Synchronize with the cSocketThreads (so that they don't call us anymore)
- cRoot::Get()->GetServer()->ClientDestroying(this);
}
@@ -489,6 +481,7 @@ void cClientHandle::HandlePacket(cPacket * a_Packet)
// Ignored packets:
case E_PLAYERLOOK:
+ case E_CHAT:
case E_PLAYERMOVELOOK:
case E_PLAYERPOS:
case E_KEEP_ALIVE: break;
@@ -504,6 +497,8 @@ void cClientHandle::HandlePacket(cPacket * a_Packet)
{
// Ignored packets:
case E_KEEP_ALIVE:
+ case E_CHAT:
+ case E_FLYING:
case E_PLAYERLOOK:
case E_PLAYERMOVELOOK:
case E_PLAYERPOS: break;
@@ -520,6 +515,8 @@ void cClientHandle::HandlePacket(cPacket * a_Packet)
{
// Ignored packets:
case E_KEEP_ALIVE:
+ case E_CHAT:
+ case E_FLYING:
case E_PLAYERLOOK:
case E_PLAYERMOVELOOK:
case E_PLAYERPOS: break;
@@ -535,6 +532,8 @@ void cClientHandle::HandlePacket(cPacket * a_Packet)
{
// Ignored packets:
case E_KEEP_ALIVE:
+ case E_CHAT:
+ case E_FLYING:
case E_PLAYERLOOK:
case E_PLAYERPOS: break;