summaryrefslogtreecommitdiffstats
path: root/source/Generating/ChunkGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-05 21:56:45 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-05 21:56:45 +0200
commite88cdf8da714473624b221aca5a6feed2154a885 (patch)
treed5c49f766776e7e63d13dcca39fedbeda1db90db /source/Generating/ChunkGenerator.cpp
parentFixed Biomal CompoGen to set heightmap correctly when underwater (diff)
downloadcuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar.gz
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar.bz2
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar.lz
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar.xz
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.tar.zst
cuberite-e88cdf8da714473624b221aca5a6feed2154a885.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/ChunkGenerator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Generating/ChunkGenerator.cpp b/source/Generating/ChunkGenerator.cpp
index a4717380d..d35b30460 100644
--- a/source/Generating/ChunkGenerator.cpp
+++ b/source/Generating/ChunkGenerator.cpp
@@ -272,6 +272,11 @@ void cChunkGenerator::DoGenerate(int a_ChunkX, int a_ChunkY, int a_ChunkZ)
m_Generator->DoGenerate(a_ChunkX, a_ChunkZ, ChunkDesc);
cRoot::Get()->GetPluginManager()->CallHookChunkGenerated(m_World, a_ChunkX, a_ChunkZ, &ChunkDesc);
+ #ifdef _DEBUG
+ // Verify that the generator has produced valid data:
+ ChunkDesc.VerifyHeightmap();
+ #endif
+
cChunkDef::BlockNibbles BlockMetas;
ChunkDesc.CompressBlockMetas(BlockMetas);