diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-01-26 10:41:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 10:41:55 +0100 |
commit | 50a94f972d26ee15fc22cce657d13023d1022905 (patch) | |
tree | 24417c741cf85061b73098a32e61ecd3749be05e /src/Generating/RoughRavines.cpp | |
parent | Redstone: inline -> static (diff) | |
download | cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar.gz cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar.bz2 cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar.lz cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar.xz cuberite-50a94f972d26ee15fc22cce657d13023d1022905.tar.zst cuberite-50a94f972d26ee15fc22cce657d13023d1022905.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/RoughRavines.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/RoughRavines.cpp b/src/Generating/RoughRavines.cpp index fe425757f..a39f7922d 100644 --- a/src/Generating/RoughRavines.cpp +++ b/src/Generating/RoughRavines.cpp @@ -181,13 +181,13 @@ protected: float DifZ = BlockStartZ - itr->m_Z; // substitution for faster calc for (int x = 0; x < cChunkDef::Width; x++) for (int z = 0; z < cChunkDef::Width; z++) { - #ifdef _DEBUG + #ifndef NDEBUG // DEBUG: Make the roughravine shapepoints visible on a single layer (so that we can see with Minutor what's going on) if ((FloorC(DifX + x) == 0) && (FloorC(DifZ + z) == 0)) { a_ChunkDesc.SetBlockType(x, 4, z, E_BLOCK_LAPIS_ORE); } - #endif // _DEBUG + #endif // !NDEBUG // If the column is outside the enlarged radius, bail out completely float DistSq = (DifX + x) * (DifX + x) + (DifZ + z) * (DifZ + z); |