diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
commit | 2892a844d43d4c0e8209ad1efc0b135a957a4b8d (patch) | |
tree | 15d657d40fca2a3bed52514c0f7fc79f4e8141aa /source/cChunkMap.cpp | |
parent | Very alpha water physic for pickups (The swim now) (diff) | |
download | cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.gz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.bz2 cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.lz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.xz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.zst cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunkMap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp index 855318159..2f8339176 100644 --- a/source/cChunkMap.cpp +++ b/source/cChunkMap.cpp @@ -208,6 +208,8 @@ void cChunkMap::AddChunk( cChunk* a_Chunk ) const int LocalZ = a_Chunk->GetPosZ() - LayerZ * LAYER_SIZE;
if( FoundLayer->m_Chunks[ LocalX + LocalZ * LAYER_SIZE ].m_LiveChunk )
LOGWARN("WARNING: Added chunk to layer while it was already loaded!");
+ if( FoundLayer->m_Chunks[ LocalX + LocalZ * LAYER_SIZE ].m_Compressed )
+ LOGWARN("WARNING: Added chunk to layer while a compressed version exists!");
FoundLayer->m_Chunks[ LocalX + LocalZ * LAYER_SIZE ].m_LiveChunk = a_Chunk;
FoundLayer->m_NumChunksLoaded++;
}
|