From c3c149d62e7b32af3f6f168d993404072547ab63 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 19 Jul 2012 21:54:50 +0000 Subject: Ravines: removed a debugging feature from release builds git-svn-id: http://mc-server.googlecode.com/svn/trunk@684 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Ravines.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3