From 389062a1ed8063d82ddd611f3426c9b2b088e0fc Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 22 Mar 2012 15:53:40 +0000 Subject: Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists. git-svn-id: http://mc-server.googlecode.com/svn/trunk@426 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cWorld.h') diff --git a/source/cWorld.h b/source/cWorld.h index 56c63502b..a8591af65 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -150,8 +150,8 @@ public: /// Removes client from the chunk specified void RemoveChunkClient(int a_ChunkX, int a_ChunkY, int a_ChunkZ, cClientHandle * a_Client); - /// Removes the client from all chunks specified - void RemoveClientFromChunks(cClientHandle * a_Client, const cChunkCoordsList & a_Chunks); + /// Removes the client from all chunks it is present in + void RemoveClientFromChunks(cClientHandle * a_Client); /// Sends the chunk to the client specified, if the chunk is valid. If not valid, the request is ignored (ChunkSender will send that chunk when it becomes valid) void SendChunkTo(int a_ChunkX, int a_ChunkY, int a_ChunkZ, cClientHandle * a_Client); -- cgit v1.2.3