summaryrefslogtreecommitdiffstats
path: root/source/Ravines.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-19 23:54:50 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-19 23:54:50 +0200
commitc3c149d62e7b32af3f6f168d993404072547ab63 (patch)
tree0186759a9a011b0c25733bd8467c3cee085bb710 /source/Ravines.cpp
parentRavines: initial implementation, randomized shapes are working, but still needs some work (diff)
downloadcuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar.gz
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar.bz2
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar.lz
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar.xz
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.tar.zst
cuberite-c3c149d62e7b32af3f6f168d993404072547ab63.zip
Diffstat (limited to 'source/Ravines.cpp')
-rw-r--r--source/Ravines.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Ravines.cpp b/source/Ravines.cpp
index a3c00fd3a..d717b324f 100644
--- a/source/Ravines.cpp
+++ b/source/Ravines.cpp
@@ -399,11 +399,13 @@ void cStructGenRavines::cRavine::ProcessChunk(
int DifZ = BlockStartZ - itr->m_BlockZ; // substitution for faster calc
for (int x = 0; x < cChunkDef::Width; x++) for (int z = 0; z < cChunkDef::Width; z++)
{
+ #ifdef _DEBUG
// DEBUG: Make the ravine shapepoints visible on a single layer (so that we can see with Minutor what's going on)
if ((DifX + x == 0) && (DifZ + z == 0))
{
cChunkDef::SetBlock(a_BlockTypes, x, 4, z, E_BLOCK_LAPIS_ORE);
}
+ #endif // _DEBUG
int DistSq = (DifX + x) * (DifX + x) + (DifZ + z) * (DifZ + z);
if (DistSq <= RadiusSq)