diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-20 00:00:00 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-20 00:00:00 +0100 |
commit | 0b616909e3472a4360e22d6b01749ee44092e967 (patch) | |
tree | 6a70857aa2839acd133b77fcc225af6828cb8f39 /source/cWorldGenerator.cpp | |
parent | Fixed assertion bug in NamedEntitySpawn packet, it used to assert when item ID is 0, but now 0 is allowed (diff) | |
download | cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.gz cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.bz2 cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.lz cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.xz cuberite-0b616909e3472a4360e22d6b01749ee44092e967.tar.zst cuberite-0b616909e3472a4360e22d6b01749ee44092e967.zip |
Diffstat (limited to 'source/cWorldGenerator.cpp')
-rw-r--r-- | source/cWorldGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cWorldGenerator.cpp b/source/cWorldGenerator.cpp index b1f868cad..6fecfc2e6 100644 --- a/source/cWorldGenerator.cpp +++ b/source/cWorldGenerator.cpp @@ -154,7 +154,7 @@ static float GetOreNoise( float x, float y, float z, cNoise & a_Noise ) unsigned int cWorldGenerator::MakeIndex(int x, int y, int z )
{
- assert((x < 16) && (x > -1) && (y < 128) && (y > -1) && (z < 16) && (z > -1));
+ ASSERT((x < 16) && (x > -1) && (y < 128) && (y > -1) && (z < 16) && (z > -1));
return y + (z * 128) + (x * 128 * 16);
}
|