From 4d65ffffc0b6f35ac84e310fd4bc9739ea7e0c0a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 5 Mar 2012 16:41:57 +0000 Subject: ChunkSender: Chunks are now compressed and sent to clients from a separate threads, proper passive waiting between threads. Not much tested, just appears to work :) git-svn-id: http://mc-server.googlecode.com/svn/trunk@365 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_MapChunk.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'source/packets/cPacket_MapChunk.h') diff --git a/source/packets/cPacket_MapChunk.h b/source/packets/cPacket_MapChunk.h index 72cef7d25..db4192457 100644 --- a/source/packets/cPacket_MapChunk.h +++ b/source/packets/cPacket_MapChunk.h @@ -7,12 +7,6 @@ -class cChunk; - - - - - class cPacket_MapChunk : public cPacket { @@ -39,6 +33,7 @@ public: { m_PacketID = E_MAP_CHUNK; m_CompressedData = 0; } cPacket_MapChunk( const cPacket_MapChunk & a_Copy ); + cPacket_MapChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, char * a_BlockData); ~cPacket_MapChunk(); virtual cPacket* Clone() const { return new cPacket_MapChunk(*this); } @@ -66,12 +61,6 @@ public: char * m_CompressedData; - -protected: - friend class cChunk; - - cPacket_MapChunk(cChunk * a_Chunk); // Called only from within cChunk, therefore it CAN receive a direct pointer - }; -- cgit v1.2.3