diff options
author | madmaxoft <github@xoft.cz> | 2014-07-18 09:57:34 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-18 09:57:34 +0200 |
commit | 2df5e26d3b7f08ef7d120511705fa0b75a44783e (patch) | |
tree | 29c7d3211df380072585b5cfcb63d7e525d451ef /src/ChunkMap.cpp | |
parent | Removed duplicate IPvX labels. (diff) | |
download | cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar.gz cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar.bz2 cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar.lz cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar.xz cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.tar.zst cuberite-2df5e26d3b7f08ef7d120511705fa0b75a44783e.zip |
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r-- | src/ChunkMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 9f280f1c5..e91f77d27 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -2762,8 +2762,8 @@ cChunkPtr cChunkMap::cChunkLayer::GetChunk( int a_ChunkX, int a_ChunkY, int a_Ch { cChunk * neixm = (LocalX > 0) ? m_Chunks[Index - 1] : m_Parent->FindChunk(a_ChunkX - 1, a_ChunkZ); cChunk * neixp = (LocalX < LAYER_SIZE - 1) ? m_Chunks[Index + 1] : m_Parent->FindChunk(a_ChunkX + 1, a_ChunkZ); - cChunk * neizm = (LocalZ > 0) ? m_Chunks[Index - LAYER_SIZE] : m_Parent->FindChunk(a_ChunkX , a_ChunkZ - 1); - cChunk * neizp = (LocalZ < LAYER_SIZE - 1) ? m_Chunks[Index + LAYER_SIZE] : m_Parent->FindChunk(a_ChunkX , a_ChunkZ + 1); + cChunk * neizm = (LocalZ > 0) ? m_Chunks[Index - LAYER_SIZE] : m_Parent->FindChunk(a_ChunkX, a_ChunkZ - 1); + cChunk * neizp = (LocalZ < LAYER_SIZE - 1) ? m_Chunks[Index + LAYER_SIZE] : m_Parent->FindChunk(a_ChunkX, a_ChunkZ + 1); m_Chunks[Index] = new cChunk(a_ChunkX, 0, a_ChunkZ, m_Parent, m_Parent->GetWorld(), neixm, neixp, neizm, neizp, m_Pool); } return m_Chunks[Index]; |