diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-22 16:53:40 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-22 16:53:40 +0100 |
commit | 389062a1ed8063d82ddd611f3426c9b2b088e0fc (patch) | |
tree | 50fb81d24e7849bed22b1acf04cad62f9b514450 /source/cChunkMap.h | |
parent | Added core.build permission to Core. Without this permission players are unable to build (diff) | |
download | cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar.gz cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar.bz2 cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar.lz cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar.xz cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.tar.zst cuberite-389062a1ed8063d82ddd611f3426c9b2b088e0fc.zip |
Diffstat (limited to 'source/cChunkMap.h')
-rw-r--r-- | source/cChunkMap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cChunkMap.h b/source/cChunkMap.h index f2d55b6b8..ea93db80b 100644 --- a/source/cChunkMap.h +++ b/source/cChunkMap.h @@ -102,8 +102,8 @@ public: /// Removes the client from the chunk
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);
/// Moves the entity from its current chunk to the new chunk specified
void MoveEntityToChunk(cEntity * a_Entity, int a_ChunkX, int a_ChunkY, int a_ChunkZ);
@@ -162,6 +162,8 @@ private: void Tick( float a_Dt, MTRand & a_TickRand );
+ void RemoveClient(cClientHandle * a_Client);
+
protected:
cChunkPtr m_Chunks[LAYER_SIZE * LAYER_SIZE];
|