summaryrefslogtreecommitdiffstats
path: root/src/Generating/GridStructGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-21 20:27:11 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-21 20:27:11 +0200
commitede0f13b51db0a1aaf69a80708962341b971cc34 (patch)
treef8051edd858435791b0edcea1ca36192d8179afb /src/Generating/GridStructGen.cpp
parentUpdated CONTRIBUTORS file (diff)
parentAdded a TestRails generator. (diff)
downloadcuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.gz
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.bz2
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.lz
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.xz
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.tar.zst
cuberite-ede0f13b51db0a1aaf69a80708962341b971cc34.zip
Diffstat (limited to 'src/Generating/GridStructGen.cpp')
-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