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/cClientHandle.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/cClientHandle.h') diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 2a9833de4..6e1079569 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -86,8 +86,6 @@ public: // Removes the client from all chunks. Used when switching worlds or destroying the player void RemoveFromAllChunks(void); - void ChunkJustSent(cChunk * a_ChunkSent); // Called by cChunk when it is loaded / generated and sent to all clients registered in it - inline bool IsLoggedIn(void) const { return m_State >= csAuthenticating; } void Tick(float a_Dt); @@ -106,6 +104,9 @@ public: void SetViewDistance(int a_ViewDistance); //tolua_export int GetUniqueID() const { return m_UniqueID; } //tolua_export + + /// Returns true if the client wants the chunk specified to be sent (in m_ChunksToSend) + bool WantsSendChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ); private: -- cgit v1.2.3