summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 03:16:01 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-10-30 03:16:01 +0100
commit9f3b6fe838b29fd178a7981b559ba56f7e2c34cd (patch)
tree77316b98bf6f6940ef90069083b7f281c2d6b886 /source/cChunkMap.cpp
parentAdded denotch map converter. Program currently reads the only mcr file in the region dir and writes the uncompressed chunk data in world/X0-Z0.pak. I compile in linux with "g++ cConvert.cpp -lz -o denotch" (diff)
downloadcuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar.gz
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar.bz2
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar.lz
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar.xz
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.tar.zst
cuberite-9f3b6fe838b29fd178a7981b559ba56f7e2c34cd.zip
Diffstat (limited to 'source/cChunkMap.cpp')
-rw-r--r--source/cChunkMap.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp
index 2f6818195..32bdf576a 100644
--- a/source/cChunkMap.cpp
+++ b/source/cChunkMap.cpp
@@ -12,8 +12,6 @@
#include <stdio.h> // sprintf and stuff
#endif
-#include <iostream>
-
#include "zlib.h"
#include <json/json.h>
@@ -365,7 +363,6 @@ cChunk* cChunkMap::GetChunk( int a_X, int a_Y, int a_Z )
else
{
cChunk* Chunk = new cChunk(a_X, a_Y, a_Z);
- //std::cout << BlockData;
memcpy( Chunk->m_BlockData, BlockData, cChunk::c_BlockDataSize );
Chunk->CalculateHeightmap();
Data->m_LiveChunk = Chunk;
@@ -559,7 +556,6 @@ void cChunkMap::SaveLayer( cChunkLayer* a_Layer )
sprintf_s(SourceFile, 128, "world/X%i_Z%i.pak", a_Layer->m_X, a_Layer->m_Z );
#else
sprintf(SourceFile, "world/X%i_Z%i.pak", a_Layer->m_X, a_Layer->m_Z );
- //std::cout << SourceFile << std::endl;
#endif
@@ -689,7 +685,6 @@ cChunkMap::cChunkLayer* cChunkMap::LoadLayer(int a_LayerX, int a_LayerZ )
}
OrderedData[i] = Data;
- //std::cout << Data;
}
// Loop over chunks again, in the order they were loaded, and load their compressed data