diff options
author | Mattes D <github@xoft.cz> | 2014-11-18 12:07:08 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-18 12:07:08 +0100 |
commit | 2467d29a4ec63936d0af20ae4d5cfb8e897e75be (patch) | |
tree | c144dc21b6c297edc011c8dcaf5f5b13d49aee65 /src/Noise/Noise.cpp | |
parent | Refactored cRidgedNoise into a separate template. (diff) | |
download | cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar.gz cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar.bz2 cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar.lz cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar.xz cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.tar.zst cuberite-2467d29a4ec63936d0af20ae4d5cfb8e897e75be.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Noise/Noise.cpp (renamed from src/Noise.cpp) | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/Noise.cpp b/src/Noise/Noise.cpp index c4a7e2d5f..509be7d6c 100644 --- a/src/Noise.cpp +++ b/src/Noise/Noise.cpp @@ -695,13 +695,6 @@ NOISE_DATATYPE cNoise::CubicNoise3D(NOISE_DATATYPE a_X, NOISE_DATATYPE a_Y, NOIS //////////////////////////////////////////////////////////////////////////////// // cCubicNoise: -#ifdef _DEBUG - int cCubicNoise::m_NumSingleX = 0; - int cCubicNoise::m_NumSingleXY = 0; - int cCubicNoise::m_NumSingleY = 0; - int cCubicNoise::m_NumCalls = 0; -#endif // _DEBUG - cCubicNoise::cCubicNoise(int a_Seed) : m_Noise(a_Seed) { @@ -740,23 +733,6 @@ void cCubicNoise::Generate2D( Cell.InitWorkRnds(FloorX[0], FloorY[0]); - #ifdef _DEBUG - // Statistics on the noise-space coords: - if (NumSameX == 1) - { - m_NumSingleX++; - if (NumSameY == 1) - { - m_NumSingleXY++; - } - } - if (NumSameY == 1) - { - m_NumSingleY++; - } - m_NumCalls++; - #endif // _DEBUG - // Calculate query values using Cell: int FromY = 0; for (int y = 0; y < NumSameY; y++) |