From 510133bd35cad951a02f7d102f27badded7683a4 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 17 Feb 2012 17:56:25 +0000 Subject: Chunk coords mostly "upgraded" to include the Y coord for future compatibility git-svn-id: http://mc-server.googlecode.com/svn/trunk@285 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunkMap.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'source/cChunkMap.h') 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); -- cgit v1.2.3