g_BlockXXX => cBlockInfo::XXX
This commit is contained in:
@@ -391,7 +391,7 @@ void cLightingThread::PrepareBlockLight(void)
|
||||
int idx = BaseZ + x;
|
||||
for (int y = m_HeightMap[idx], Index = idx + y * BlocksPerYLayer; y >= 0; y--, Index -= BlocksPerYLayer)
|
||||
{
|
||||
if (g_BlockLightValue[m_BlockTypes[Index]] == 0)
|
||||
if (cBlockInfo::GetLightValue(m_BlockTypes[Index]) == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -401,7 +401,7 @@ void cLightingThread::PrepareBlockLight(void)
|
||||
m_SeedIdx1[m_NumSeeds++] = Index;
|
||||
|
||||
// Light it up:
|
||||
m_BlockLight[Index] = g_BlockLightValue[m_BlockTypes[Index]];
|
||||
m_BlockLight[Index] = cBlockInfo::GetLightValue(m_BlockTypes[Index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user