diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-17 18:56:25 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-17 18:56:25 +0100 |
commit | 510133bd35cad951a02f7d102f27badded7683a4 (patch) | |
tree | 3c995df9f2fd07806f053f6b57bd67686661a84c /source/cChunkMap.h | |
parent | Removed useless log messages (diff) | |
download | cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.gz cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.bz2 cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.lz cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.xz cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.zst cuberite-510133bd35cad951a02f7d102f27badded7683a4.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunkMap.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/cChunkMap.h b/source/cChunkMap.h index 0b3e79931..4ec7ef01d 100644 --- a/source/cChunkMap.h +++ b/source/cChunkMap.h @@ -89,18 +89,12 @@ private: cChunkLayer(int a_LayerX, int a_LayerZ, cChunkMap * a_Parent);
/// Always returns an assigned chunkptr, but the chunk needn't be valid (loaded / generated) - callers must check
- cChunkPtr GetChunk( int a_ChunkX, int a_ChunkZ );
+ cChunkPtr GetChunk( int a_ChunkX, int a_ChunkY, int a_ChunkZ );
int GetX(void) const {return m_LayerX; }
int GetZ(void) const {return m_LayerZ; }
- int GetNumChunksLoaded(void) const
- {
- int NumChunks = 0;
- for( int i = 0; i < LAYER_SIZE*LAYER_SIZE; ++i )
- if( m_Chunks[i].get() )
- NumChunks++;
- return NumChunks;
- }
+
+ int GetNumChunksLoaded(void) const ;
void Save(void);
void UnloadUnusedChunks(void);
|