summaryrefslogtreecommitdiffstats
path: root/source/LightingThread.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 10:40:15 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 10:40:15 +0100
commitc360d683e0aebe3f6a56257f200cafc7b6849834 (patch)
treec1345c2586259677ca9378d37162a0b90470f826 /source/LightingThread.cpp
parent- Added the "wait" music disc (diff)
downloadcuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar.gz
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar.bz2
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar.lz
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar.xz
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.tar.zst
cuberite-c360d683e0aebe3f6a56257f200cafc7b6849834.zip
Diffstat (limited to 'source/LightingThread.cpp')
-rw-r--r--source/LightingThread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/LightingThread.cpp b/source/LightingThread.cpp
index 7c9529298..94648164e 100644
--- a/source/LightingThread.cpp
+++ b/source/LightingThread.cpp
@@ -474,7 +474,7 @@ void cLightingThread::CalcLightStep(
int SeedY = SeedIdx / BlocksPerYLayer;
// Propagate seed:
- if (SeedX < cChunkDef::Width * 3)
+ if (SeedX < cChunkDef::Width * 3 - 1)
{
PropagateLight(a_Light, SeedIdx, SeedIdx + 1, NumSeedsOut, a_IsSeedOut, a_SeedIdxOut);
}
@@ -482,7 +482,7 @@ void cLightingThread::CalcLightStep(
{
PropagateLight(a_Light, SeedIdx, SeedIdx - 1, NumSeedsOut, a_IsSeedOut, a_SeedIdxOut);
}
- if (SeedZ < cChunkDef::Width * 3)
+ if (SeedZ < cChunkDef::Width * 3 - 1)
{
PropagateLight(a_Light, SeedIdx, SeedIdx + cChunkDef::Width * 3, NumSeedsOut, a_IsSeedOut, a_SeedIdxOut);
}
@@ -490,7 +490,7 @@ void cLightingThread::CalcLightStep(
{
PropagateLight(a_Light, SeedIdx, SeedIdx - cChunkDef::Width * 3, NumSeedsOut, a_IsSeedOut, a_SeedIdxOut);
}
- if (SeedY < cChunkDef::Height)
+ if (SeedY < cChunkDef::Height - 1)
{
PropagateLight(a_Light, SeedIdx, SeedIdx + cChunkDef::Width * cChunkDef::Width * 3 * 3, NumSeedsOut, a_IsSeedOut, a_SeedIdxOut);
}