summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-02 16:13:43 +0100
committerMattes D <github@xoft.cz>2014-03-02 16:13:43 +0100
commitb17d04737d11c5698a6869c70031646723d79f11 (patch)
treed71275553552a16dd2b9ba949cd5abf8baf9fa5a /src/LightingThread.h
parentMerge pull request #745 from tonibm19/master (diff)
parentGetById => Get (diff)
downloadcuberite-b17d04737d11c5698a6869c70031646723d79f11.tar
cuberite-b17d04737d11c5698a6869c70031646723d79f11.tar.gz
cuberite-b17d04737d11c5698a6869c70031646723d79f11.tar.bz2
cuberite-b17d04737d11c5698a6869c70031646723d79f11.tar.lz
cuberite-b17d04737d11c5698a6869c70031646723d79f11.tar.xz
cuberite-b17d04737d11c5698a6869c70031646723d79f11.tar.zst
cuberite-b17d04737d11c5698a6869c70031646723d79f11.zip
Diffstat (limited to 'src/LightingThread.h')
-rw-r--r--src/LightingThread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LightingThread.h b/src/LightingThread.h
index 72d561348..198f27248 100644
--- a/src/LightingThread.h
+++ b/src/LightingThread.h
@@ -169,13 +169,13 @@ protected:
ASSERT(a_DstIdx >= 0);
ASSERT(a_DstIdx < (int)ARRAYCOUNT(m_BlockTypes));
- if (a_Light[a_SrcIdx] <= a_Light[a_DstIdx] + g_BlockSpreadLightFalloff[m_BlockTypes[a_DstIdx]])
+ if (a_Light[a_SrcIdx] <= a_Light[a_DstIdx] + cBlockInfo::GetSpreadLightFalloff(m_BlockTypes[a_DstIdx]))
{
// We're not offering more light than the dest block already has
return;
}
- a_Light[a_DstIdx] = a_Light[a_SrcIdx] - g_BlockSpreadLightFalloff[m_BlockTypes[a_DstIdx]];
+ a_Light[a_DstIdx] = a_Light[a_SrcIdx] - cBlockInfo::GetSpreadLightFalloff(m_BlockTypes[a_DstIdx]);
if (!a_IsSeedOut[a_DstIdx])
{
a_IsSeedOut[a_DstIdx] = true;