summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-21 20:17:17 +0200
committermadmaxoft <github@xoft.cz>2014-06-21 20:17:17 +0200
commit9a57c590cd99d7ff9871849fb8ce3017570c1c2a (patch)
tree1e25def9d5a216d45c4d098657499a84db6dec6c
parentUpdated prefabs to the latest Gallery content. (diff)
downloadcuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar.gz
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar.bz2
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar.lz
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar.xz
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.tar.zst
cuberite-9a57c590cd99d7ff9871849fb8ce3017570c1c2a.zip
-rw-r--r--src/Generating/GridStructGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/GridStructGen.cpp b/src/Generating/GridStructGen.cpp
index 2931df3eb..95f8c38bc 100644
--- a/src/Generating/GridStructGen.cpp
+++ b/src/Generating/GridStructGen.cpp
@@ -88,8 +88,8 @@ void cGridStructGen::GetStructuresForChunk(int a_ChunkX, int a_ChunkZ, cStructur
for (cStructurePtrs::iterator itr = m_Cache.begin(), end = m_Cache.end(); itr != end;)
{
if (
- ((*itr)->m_OriginX >= MinX) && ((*itr)->m_OriginX < MaxX) &&
- ((*itr)->m_OriginZ >= MinZ) && ((*itr)->m_OriginZ < MaxZ)
+ ((*itr)->m_GridX >= MinX) && ((*itr)->m_GridX < MaxX) &&
+ ((*itr)->m_GridZ >= MinZ) && ((*itr)->m_GridZ < MaxZ)
)
{
// want