From af44154ff57ee725903d58c94cbba12413ddeb41 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 11 Mar 2012 10:48:20 +0000 Subject: Not sending chunks to the client twice git-svn-id: http://mc-server.googlecode.com/svn/trunk@399 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkSender.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/ChunkSender.h') diff --git a/source/ChunkSender.h b/source/ChunkSender.h index b2ada5a09..23cce039b 100644 --- a/source/ChunkSender.h +++ b/source/ChunkSender.h @@ -77,6 +77,16 @@ protected: m_Client(a_Client) { } + + bool operator ==(const sSendChunk & a_Other) + { + return ( + (a_Other.m_ChunkX == m_ChunkX) && + (a_Other.m_ChunkY == m_ChunkY) && + (a_Other.m_ChunkZ == m_ChunkZ) && + (a_Other.m_Client == m_Client) + ); + } }; typedef std::list sSendChunkList; -- cgit v1.2.3