summaryrefslogtreecommitdiffstats
path: root/source/Generating/Caves.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-11-16 19:52:48 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-11-16 19:52:48 +0100
commit45aebbd5abe653045a6b647aec61df32b227bc78 (patch)
tree25a57cf7db3324117cf9087026d02ddbec1238ba /source/Generating/Caves.cpp
parentGot rid of yet another unused variable. (diff)
downloadcuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar.gz
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar.bz2
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar.lz
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar.xz
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.tar.zst
cuberite-45aebbd5abe653045a6b647aec61df32b227bc78.zip
Diffstat (limited to '')
-rw-r--r--source/Generating/Caves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Generating/Caves.cpp b/source/Generating/Caves.cpp
index 5aebc111b..535ca4fb2 100644
--- a/source/Generating/Caves.cpp
+++ b/source/Generating/Caves.cpp
@@ -461,7 +461,7 @@ void cCaveTunnel::ProcessChunk(
int BaseZ = a_ChunkZ * cChunkDef::Width;
if (
(BaseX > m_MaxBlockX) || (BaseX + cChunkDef::Width < m_MinBlockX) ||
- (BaseX > m_MaxBlockX) || (BaseX + cChunkDef::Width < m_MinBlockX)
+ (BaseZ > m_MaxBlockZ) || (BaseZ + cChunkDef::Width < m_MinBlockZ)
)
{
// Tunnel does not intersect the chunk at all, bail out