summaryrefslogtreecommitdiffstats
path: root/src/Noise.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-18 14:56:32 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-18 14:56:32 +0100
commit42120e2ea5db0cdb9920ff1c5efef33e0f496d48 (patch)
tree20ba1ae0a53f757cb8814b6cd6a466fe5acf1308 /src/Noise.cpp
parentFixed compile errors. (diff)
parentMerge pull request #1598 from mc-server/SignEditor (diff)
downloadcuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar.gz
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar.bz2
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar.lz
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar.xz
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.tar.zst
cuberite-42120e2ea5db0cdb9920ff1c5efef33e0f496d48.zip
Diffstat (limited to 'src/Noise.cpp')
-rw-r--r--src/Noise.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Noise.cpp b/src/Noise.cpp
index 71e801f30..8fcfe2920 100644
--- a/src/Noise.cpp
+++ b/src/Noise.cpp
@@ -845,7 +845,7 @@ void cPerlinNoise::Generate2D(
return;
}
- bool ShouldFreeWorkspace = (a_Workspace == NULL);
+ bool ShouldFreeWorkspace = (a_Workspace == nullptr);
int ArrayCount = a_SizeX * a_SizeY;
if (ShouldFreeWorkspace)
{
@@ -886,7 +886,7 @@ void cPerlinNoise::Generate2D(
if (ShouldFreeWorkspace)
{
delete[] a_Workspace;
- a_Workspace = NULL;
+ a_Workspace = nullptr;
}
}
@@ -910,7 +910,7 @@ void cPerlinNoise::Generate3D(
return;
}
- bool ShouldFreeWorkspace = (a_Workspace == NULL);
+ bool ShouldFreeWorkspace = (a_Workspace == nullptr);
int ArrayCount = a_SizeX * a_SizeY * a_SizeZ;
if (ShouldFreeWorkspace)
{
@@ -953,7 +953,7 @@ void cPerlinNoise::Generate3D(
if (ShouldFreeWorkspace)
{
delete[] a_Workspace;
- a_Workspace = NULL;
+ a_Workspace = nullptr;
}
}
@@ -1015,7 +1015,7 @@ void cRidgedMultiNoise::Generate2D(
return;
}
- bool ShouldFreeWorkspace = (a_Workspace == NULL);
+ bool ShouldFreeWorkspace = (a_Workspace == nullptr);
int ArrayCount = a_SizeX * a_SizeY;
if (ShouldFreeWorkspace)
{
@@ -1056,7 +1056,7 @@ void cRidgedMultiNoise::Generate2D(
if (ShouldFreeWorkspace)
{
delete[] a_Workspace;
- a_Workspace = NULL;
+ a_Workspace = nullptr;
}
}
@@ -1080,7 +1080,7 @@ void cRidgedMultiNoise::Generate3D(
return;
}
- bool ShouldFreeWorkspace = (a_Workspace == NULL);
+ bool ShouldFreeWorkspace = (a_Workspace == nullptr);
int ArrayCount = a_SizeX * a_SizeY * a_SizeZ;
if (ShouldFreeWorkspace)
{
@@ -1123,7 +1123,7 @@ void cRidgedMultiNoise::Generate3D(
if (ShouldFreeWorkspace)
{
delete[] a_Workspace;
- a_Workspace = NULL;
+ a_Workspace = nullptr;
}
}