diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-05 18:27:08 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-05 18:27:08 +0200 |
commit | 270560a198db49464a5a5a6d75d9650a30208bc7 (patch) | |
tree | a1ab9162becfd1b0888a0beb359d09edb228093f /source/Generating/ChunkDesc.cpp | |
parent | Lighting: Fixed underwater lighting (FS #369) (diff) | |
download | cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar.gz cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar.bz2 cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar.lz cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar.xz cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.tar.zst cuberite-270560a198db49464a5a5a6d75d9650a30208bc7.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Generating/ChunkDesc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.cpp b/source/Generating/ChunkDesc.cpp index ff331e6e4..5c59055f7 100644 --- a/source/Generating/ChunkDesc.cpp +++ b/source/Generating/ChunkDesc.cpp @@ -558,9 +558,11 @@ void cChunkDesc::VerifyHeightmap(void) {
for (int y = cChunkDef::Height - 1; y > 0; y--)
{
- if (GetBlockType(x, y, z) != E_BLOCK_AIR)
+ BLOCKTYPE BlockType = GetBlockType(x, y, z);
+ if (BlockType != E_BLOCK_AIR)
{
- ASSERT(GetHeight(x, z) == y);
+ int Height = GetHeight(x, z);
+ ASSERT(Height == y);
break;
}
} // for y
|